Skip to content

Commit

Permalink
V4L/DVB (7373): logical-bitwise & confusion in se401_init()
Browse files Browse the repository at this point in the history
logical-bitwise & confusion

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 7f0dd17 commit 33b4af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/se401.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,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;
}
Expand Down

0 comments on commit 33b4af9

Please sign in to comment.