Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] af9013: change & to &&

This is just a cleanup, it doesn't change how the code works. These
are compound conditions and not bitwise operations so it should be &&
and not &.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Dan Carpenter and committed by
Mauro Carvalho Chehab
938ca36e 27b93d8a

+4 -4
+4 -4
drivers/media/dvb/frontends/af9013.c
··· 120 120 int ret, i; 121 121 u8 mbox = (0 << 7)|(0 << 6)|(1 << 1)|(1 << 0); 122 122 123 - if ((priv->config.ts_mode == AF9013_TS_USB) & 124 - ((reg & 0xff00) != 0xff00) & ((reg & 0xff00) != 0xae00)) { 123 + if ((priv->config.ts_mode == AF9013_TS_USB) && 124 + ((reg & 0xff00) != 0xff00) && ((reg & 0xff00) != 0xae00)) { 125 125 mbox |= ((len - 1) << 2); 126 126 ret = af9013_wr_regs_i2c(priv, mbox, reg, val, len); 127 127 } else { ··· 142 142 int ret, i; 143 143 u8 mbox = (0 << 7)|(0 << 6)|(1 << 1)|(0 << 0); 144 144 145 - if ((priv->config.ts_mode == AF9013_TS_USB) & 146 - ((reg & 0xff00) != 0xff00) & ((reg & 0xff00) != 0xae00)) { 145 + if ((priv->config.ts_mode == AF9013_TS_USB) && 146 + ((reg & 0xff00) != 0xff00) && ((reg & 0xff00) != 0xae00)) { 147 147 mbox |= ((len - 1) << 2); 148 148 ret = af9013_rd_regs_i2c(priv, mbox, reg, val, len); 149 149 } else {