From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, pawel@osciak.com,
sakari.ailus@iki.fi, m.szyprowski@samsung.com,
s.nawrocki@samsung.com, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [REVIEWv3 PATCH 01/13] vb2: stop_streaming should return void
Date: Wed, 16 Apr 2014 23:26:26 -0300 [thread overview]
Message-ID: <20140416232626.7ae7ba9e@samsung.com> (raw)
In-Reply-To: <20140416183825.141e238e@samsung.com>
Hi Hans,
Em Wed, 16 Apr 2014 18:38:25 -0300
Mauro Carvalho Chehab <m.chehab@samsung.com> escreveu:
> Em Fri, 11 Apr 2014 10:11:07 +0200
> Hans Verkuil <hverkuil@xs4all.nl> escreveu:
>
> > From: Hans Verkuil <hans.verkuil@cisco.com>
> >
> > --- a/drivers/media/platform/blackfin/bfin_capture.c
> > +++ b/drivers/media/platform/blackfin/bfin_capture.c
> > @@ -427,15 +427,12 @@ static int bcap_start_streaming(struct vb2_queue *vq, unsigned int count)
> > return 0;
> > }
> >
> > -static int bcap_stop_streaming(struct vb2_queue *vq)
> > +static void bcap_stop_streaming(struct vb2_queue *vq)
> > {
> > struct bcap_device *bcap_dev = vb2_get_drv_priv(vq);
> > struct ppi_if *ppi = bcap_dev->ppi;
> > int ret;
> >
> > - if (!vb2_is_streaming(vq))
> > - return 0;
> > -
>
> Why are you dropping this? IMHO, you should be doing, instead:
> if (!vb2_is_streaming(vq))
> return;
>
> Except if you're 100% sure that checking it here can be removed. On
> this case, please put this on a separate patch, clearly explaining
> why we can safely remove this.
>
> Please notice that on other similar parts of this patch, you didn't remove
> the test, just removed the returned parameter.
As I said before, if you need to remove the vb2_is_streaming(vq) check
above, please do it on a separate patch, properly justifying why you're
doing that.
This hunk is still present on your new pull request.
--
Regards,
Mauro
next prev parent reply other threads:[~2014-04-17 2:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-11 8:11 [REVIEWv3 PATCH 00/13] vb2: various small fixes/improvements Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 01/13] vb2: stop_streaming should return void Hans Verkuil
2014-04-16 21:38 ` Mauro Carvalho Chehab
2014-04-17 2:26 ` Mauro Carvalho Chehab [this message]
2014-04-11 8:11 ` [REVIEWv3 PATCH 02/13] vb2: fix handling of data_offset and v4l2_plane.reserved[] Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 03/13] vb2: if bytesused is 0, then fill with output buffer length Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 04/13] vb2: use correct prefix Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 05/13] vb2: move __qbuf_mmap before __qbuf_userptr Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 06/13] vb2: set timestamp when using write() Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 07/13] vb2: reject output buffers with V4L2_FIELD_ALTERNATE Hans Verkuil
2014-04-11 8:42 ` Archit Taneja
2014-04-11 8:58 ` Hans Verkuil
2014-04-11 9:02 ` Archit Taneja
2014-04-11 8:11 ` [REVIEWv3 PATCH 08/13] vb2: simplify a confusing condition Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 09/13] vb2: add vb2_fileio_is_active and check it more often Hans Verkuil
2014-04-11 13:05 ` Tomasz Stanislawski
2014-04-11 13:22 ` Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 10/13] vb2: allow read/write as long as the format is single planar Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 11/13] vb2: start messages with a lower-case for consistency Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 12/13] DocBook media: update bytesused field description Hans Verkuil
2014-04-11 8:11 ` [REVIEWv3 PATCH 13/13] v4l2-pci-skeleton.c: fix alternate field handling Hans Verkuil
2014-04-11 9:39 ` [REVIEWv3 PATCH 00/13] vb2: various small fixes/improvements 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=20140416232626.7ae7ba9e@samsung.com \
--to=m.chehab@samsung.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=pawel@osciak.com \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
/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