* [PATCH] se401: fix "&& 0x" typo
@ 2007-07-02 11:04 Alexey Dobriyan
2007-07-02 14:46 ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2007-07-02 11:04 UTC (permalink / raw)
To: pe1rxq, v4l-dvb-maintainer; +Cc: linux-kernel, devel
Code there survived trivial regexp made earlier, but after bulk preprocessing
was done...
===> if (!cp[2] && 0x40) { <===
printk("<3>" "%s: " "Bayer format not supported!" ...
return 1;
}
NOTE: to me, check or error message should be reverted, but I know nothing
about this driver.
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---
drivers/media/video/se401.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -1280,7 +1280,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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [v4l-dvb-maintainer] [PATCH] se401: fix "&& 0x" typo
2007-07-02 11:04 [PATCH] se401: fix "&& 0x" typo Alexey Dobriyan
@ 2007-07-02 14:46 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2007-07-02 14:46 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: pe1rxq, v4l-dvb-maintainer, linux-kernel, devel
Em Seg, 2007-07-02 às 15:04 +0400, Alexey Dobriyan escreveu:
> Code there survived trivial regexp made earlier, but after bulk preprocessing
> was done...
>
> ===> if (!cp[2] && 0x40) { <===
> printk("<3>" "%s: " "Bayer format not supported!" ...
> return 1;
> }
>
>
> NOTE: to me, check or error message should be reverted, but I know nothing
> about this driver.
Your patch looks to be coherent. However, I suspect that this will break
the driver. There are some functions at the driver for decoding Bayer
format. Without your patch, the if condition will never occur. So, Bayer
decoding will work.
IMO, the better is to add an #if 0 at the test.
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-02 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 11:04 [PATCH] se401: fix "&& 0x" typo Alexey Dobriyan
2007-07-02 14:46 ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®