summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/se401.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-03-13 22:58:37 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-03-13 22:58:37 +0000
commit49e756dcfded2fffa8f9c63ea341bf5524bee502 (patch)
tree386a3612e8ac12fe5d2ffb02188a215073a9282c /linux/drivers/media/video/se401.c
parenta6d070732dd73977030e19c3bae51fc1c90a5a6c (diff)
downloadmediapointer-dvb-s2-49e756dcfded2fffa8f9c63ea341bf5524bee502.tar.gz
mediapointer-dvb-s2-49e756dcfded2fffa8f9c63ea341bf5524bee502.tar.bz2
logical-bitwise & confusion in se401_init()
From: Roel Kluin <12o3l@tiscali.nl> logical-bitwise & confusion Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/se401.c')
-rw-r--r--linux/drivers/media/video/se401.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/se401.c b/linux/drivers/media/video/se401.c
index 58db31f22..45d676641 100644
--- a/linux/drivers/media/video/se401.c
+++ b/linux/drivers/media/video/se401.c
@@ -1287,7 +1287,7 @@ static int se401_init(struct usb_se401 *se401, int button)
rc=se401_sndctrl(0, se401, SE401_REQ_GET_HEIGHT, 0, cp, sizeof(cp));
se401->cheight=cp[0]+cp[1]*256;
- if (!cp[2] && SE401_FORMAT_BAYER) {
+ if (!(cp[2] & SE401_FORMAT_BAYER)) {
err("Bayer format not supported!");
return 1;
}