From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Tomasz Figa <tfiga@chromium.org>
Cc: Yong Zhi <yong.zhi@intel.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
"Mani, Rajmohan" <rajmohan.mani@intel.com>,
"Qiu, Tian Shu" <tian.shu.qiu@intel.com>,
Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Cao Bing Bu <bingbu.cao@intel.com>,
dan.carpenter@oracle.com
Subject: Re: [PATCH 2/2] media: ipu3-imgu: Remove dead code for NULL check
Date: Tue, 15 Jan 2019 18:39:24 +0200 [thread overview]
Message-ID: <1939737.6q52cZT16g@avalon> (raw)
In-Reply-To: <CAAFQd5BZc33TkX_u5-vO_n13+73Ga5Pn+ERcFzTe4=HbPWRKXA@mail.gmail.com>
Hi Tomasz,
On Tuesday, 15 January 2019 07:38:01 EET Tomasz Figa wrote:
> On Tue, Jan 15, 2019 at 12:38 PM Yong Zhi <yong.zhi@intel.com> wrote:
> > Since ipu3_css_buf_dequeue() never returns NULL, remove the
> > dead code to fix static checker warning:
> >
> > drivers/staging/media/ipu3/ipu3.c:493 imgu_isr_threaded()
> > warn: 'b' is an error pointer or valid
> >
> > Signed-off-by: Yong Zhi <yong.zhi@intel.com>
> > ---
> > Link to Dan's bug report:
> > https://www.spinics.net/lists/linux-media/msg145043.html
>
> You can add Dan's Reported-by above your Signed-off-by to properly
> credit him. I'd also add a comment below that Reported-by, e.g.
>
> [Bug report: https://www.spinics.net/lists/linux-media/msg145043.html]
How about pointing to https://lore.kernel.org/linux-media/
20190104122856.GA1169@kadam/ instead, now that we have a shiny new archive
that should be stable until the end of times ? :-)
> so that it doesn't get removed when applying the patch, as it would
> get now, because any text right in this area is ignored by git.
>
> With that fixes, feel free to add my Reviewed-by.
>
> Best regards,
> Tomasz
>
> > drivers/staging/media/ipu3/ipu3.c | 11 +++++------
> > 1 file changed, 5 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/staging/media/ipu3/ipu3.c
> > b/drivers/staging/media/ipu3/ipu3.c index d521b3afb8b1..839d9398f8e9
> > 100644
> > --- a/drivers/staging/media/ipu3/ipu3.c
> > +++ b/drivers/staging/media/ipu3/ipu3.c
> > @@ -489,12 +489,11 @@ static irqreturn_t imgu_isr_threaded(int irq, void
> > *imgu_ptr)>
> > mutex_unlock(&imgu->lock);
> >
> > } while (PTR_ERR(b) == -EAGAIN);
> >
> > - if (IS_ERR_OR_NULL(b)) {
> > - if (!b || PTR_ERR(b) == -EBUSY) /* All done */
> > - break;
> > - dev_err(&imgu->pci_dev->dev,
> > - "failed to dequeue buffers (%ld)\n",
> > - PTR_ERR(b));
> > + if (IS_ERR(b)) {
> > + if (PTR_ERR(b) != -EBUSY) /* All done */
> > + dev_err(&imgu->pci_dev->dev,
> > + "failed to dequeue buffers
> > (%ld)\n", + PTR_ERR(b));
> >
> > break;
> >
> > }
> >
> > --
> > 2.7.4
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2019-01-15 16:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-15 3:37 [PATCH 1/2] media: ipu3-imgu: Use MENU type for mode control Yong Zhi
2019-01-15 3:37 ` [PATCH 2/2] media: ipu3-imgu: Remove dead code for NULL check Yong Zhi
2019-01-15 5:38 ` Tomasz Figa
2019-01-15 16:03 ` Zhi, Yong
2019-01-15 16:39 ` Laurent Pinchart [this message]
2019-01-16 2:15 ` Tomasz Figa
2019-01-15 5:33 ` [PATCH 1/2] media: ipu3-imgu: Use MENU type for mode control Tomasz Figa
2019-01-15 7:59 ` Sakari Ailus
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=1939737.6q52cZT16g@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=bingbu.cao@intel.com \
--cc=dan.carpenter@oracle.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rajmohan.mani@intel.com \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@chromium.org \
--cc=tian.shu.qiu@intel.com \
--cc=yong.zhi@intel.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