public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Levente Kurusa <lkurusa@redhat.com>
Cc: Andrey Utkin <andrey.krieger.utkin@gmail.com>,
	OSUOSL Drivers <devel@driverdev.osuosl.org>,
	Lisa Nguyen <lisa@xenapiadmin.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Josh Triplett <josh@joshtriplett.org>,
	prabhakar.csengg@gmail.com,
	Linux Media <linux-media@vger.kernel.org>,
	Archana Kumari <archanakumari959@gmail.com>,
	Mauro Carvalho Chehab <m.chehab@samsung.com>
Subject: Re: [PATCH] [media] davinci-vpfe: Fix retcode check
Date: Tue, 8 Jul 2014 18:11:10 +0300	[thread overview]
Message-ID: <20140708151110.GQ25880@mwanda> (raw)
In-Reply-To: <CAAsK9AFfn45wyQFsOiCAZXZjXfyPLhz3FxyBO5P_q_48s9ce_g@mail.gmail.com>

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@gmail.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@hotmail.com>
> > Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.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


  parent reply	other threads:[~2014-07-08 15:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08 14:08 [PATCH] [media] davinci-vpfe: Fix retcode check Andrey Utkin
2014-07-08 14:32 ` Levente Kurusa
2014-07-08 14:58   ` Andrey Utkin
2014-07-08 15:41     ` Prabhakar Lad
2014-07-08 15:11   ` Dan Carpenter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-07-05  1:31 Andrey Utkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140708151110.GQ25880@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=andrey.krieger.utkin@gmail.com \
    --cc=archanakumari959@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lisa@xenapiadmin.com \
    --cc=lkurusa@redhat.com \
    --cc=m.chehab@samsung.com \
    --cc=prabhakar.csengg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox