From: Hans de Goede <hdegoede@redhat.com>
To: Ezequiel Garcia <elezegarcia@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>, linux-media@vger.kernel.org
Subject: Re: [PATCH 02/10] pwc: Remove unneeded struct vb2_queue clearing
Date: Sun, 09 Sep 2012 23:57:13 +0200 [thread overview]
Message-ID: <504D10B9.2010406@redhat.com> (raw)
In-Reply-To: <1345727311-27478-2-git-send-email-elezegarcia@gmail.com>
Hi,
Thanks! Applied to my gspca / media / pwc tree and included in my pull-req for 3.7 which I just send out.
Regards,
Hans
On 08/23/2012 03:08 PM, Ezequiel Garcia wrote:
> struct vb2_queue is allocated through kzalloc as part of a larger struct,
> there's no need to clear it.
>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> ---
> drivers/media/usb/pwc/pwc-if.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
> index de7c7ba..825c61a 100644
> --- a/drivers/media/usb/pwc/pwc-if.c
> +++ b/drivers/media/usb/pwc/pwc-if.c
> @@ -994,7 +994,6 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
> pdev->power_save = my_power_save;
>
> /* Init videobuf2 queue structure */
> - memset(&pdev->vb_queue, 0, sizeof(pdev->vb_queue));
> pdev->vb_queue.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
> pdev->vb_queue.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
> pdev->vb_queue.drv_priv = pdev;
>
next prev parent reply other threads:[~2012-09-09 21:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 13:08 [PATCH 01/10] stk1160: Remove unneeded struct vb2_queue clearing Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 02/10] pwc: " Ezequiel Garcia
2012-09-09 21:57 ` Hans de Goede [this message]
2012-08-23 13:08 ` [PATCH 03/10] vivi: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 04/10] mem2mem_testdev: Remove unneeded struct vb2_queue clear on queue_init() Ezequiel Garcia
2012-08-23 13:49 ` Sylwester Nawrocki
2012-08-23 14:04 ` Sylwester Nawrocki
2012-08-23 13:08 ` [PATCH 05/10] coda: " Ezequiel Garcia
2012-08-24 6:21 ` javier Martin
2012-08-23 13:08 ` [PATCH 06/10] mem2mem-deinterlace: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 07/10] mem2mem-emmaprp: " Ezequiel Garcia
2012-08-24 6:22 ` javier Martin
2012-08-23 13:08 ` [PATCH 08/10] s5p-fimc: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 09/10] s5p-jpeg: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 10/10] s5p-g2d: " Ezequiel Garcia
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=504D10B9.2010406@redhat.com \
--to=hdegoede@redhat.com \
--cc=elezegarcia@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.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;
as well as URLs for NNTP newsgroup(s).