lkml.org 
[lkml]   [2008]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] logical-bitwise & confusion in se401_init() (was: logical-bitwise & confusion in se401_init()?)
On Thu, 13 Mar 2008 16:51:29 +0100
Roel Kluin <12o3l@tiscali.nl> wrote:

> - if (!cp[2] && SE401_FORMAT_BAYER) {
> + if (!cp[2] & SE401_FORMAT_BAYER) {
> err("Bayer format not supported!");
> return 1;
> }

Would it be better to put in some additional parenthesis?

if (!(cp[2] & SE401_FORMAT_BAYER)) {

--
All Rights Reversed


\
 
 \ /
  Last update: 2008-03-13 22:35    [W:0.036 / U:3.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site