[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140708151110.GQ25880@mwanda>
Date: Tue, 8 Jul 2014 18:11:10 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Levente Kurusa <lkurusa@...hat.com>
Cc: Andrey Utkin <andrey.krieger.utkin@...il.com>,
OSUOSL Drivers <devel@...verdev.osuosl.org>,
Lisa Nguyen <lisa@...apiadmin.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Josh Triplett <josh@...htriplett.org>,
prabhakar.csengg@...il.com,
Linux Media <linux-media@...r.kernel.org>,
Archana Kumari <archanakumari959@...il.com>,
Mauro Carvalho Chehab <m.chehab@...sung.com>
Subject: Re: [PATCH] [media] davinci-vpfe: Fix retcode check
On Tue, Jul 08, 2014 at 04:32:57PM +0200, Levente Kurusa wrote:
> 2014-07-08 16:08 GMT+02:00 Andrey Utkin <andrey.krieger.utkin@...il.com>:
> > Use signed type to check correctly for negative error code. The issue
> > was reported with static analyser:
> >
> > [linux-3.13/drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c:270]:
> > (style) A pointer can not be negative so it is either pointless or an
> > error to check if it is.
> >
> > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=69071
> > Reported-by: David Binderman <dcb314@...mail.com>
> > Signed-off-by: Andrey Utkin <andrey.krieger.utkin@...il.com>
>
> Hmm, while it is true that get_ipipe_mode returns an int, but
> the consequent call to regw_ip takes an u32 as its second
> argument. Did it cause a build warning for you?
It won't cause a compile warning.
> (Can't really
> check since I don't have ARM cross compilers close-by)
Make a small test program and test.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists