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

[media] ds3000: using logical && instead of bitwise &

The intent here was to test if the FE_HAS_LOCK was set. The current
test is equivalent to "if (status) { ..."

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
3a9888f9 f08aacf8

+1 -1
+1 -1
drivers/media/dvb/frontends/ds3000.c
··· 1195 1195 1196 1196 for (i = 0; i < 30 ; i++) { 1197 1197 ds3000_read_status(fe, &status); 1198 - if (status && FE_HAS_LOCK) 1198 + if (status & FE_HAS_LOCK) 1199 1199 break; 1200 1200 1201 1201 msleep(10);