[Devel] Re: [v4l-dvb-maintainer] [PATCH] se401: fix "&& 0x" typo
Mauro Carvalho Chehab
mchehab at infradead.org
Mon Jul 2 07:46:42 PDT 2007
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
More information about the Devel
mailing list