From: Hans Verkuil <hverkuil@xs4all.nl>
To: Michael Hunold <michael@mihu.de>
Cc: Peter Senna Tschudin <peter.senna@gmail.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
linux-media@vger.kernel.org
Subject: Re: [PATCH 3/8] [RESEND] saa7146: Variable set but not used
Date: Fri, 15 Jun 2012 08:24:13 +0200 [thread overview]
Message-ID: <4FDAD50D.1010903@xs4all.nl> (raw)
In-Reply-To: <4FDACFFB.9020500@mihu.de>
On 15/06/12 08:02, Michael Hunold wrote:
> Hello Peter,
>
> on 14.06.2012 19:58 Peter Senna Tschudin said the following:
>> In function fops_open variable type was set but not used.
>
> thanks for your patch, but I think it does not work.
>
>> Tested by compilation only.
>>
>> Signed-off-by: Peter Senna Tschudin<peter.senna@gmail.com>
>> ---
>> drivers/media/common/saa7146_fops.c | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>> diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
>> index 7d42c11..0cdbd74 100644
>> --- a/drivers/media/common/saa7146_fops.c
>> +++ b/drivers/media/common/saa7146_fops.c
>> @@ -198,7 +198,6 @@ static int fops_open(struct file *file)
>> struct saa7146_dev *dev = video_drvdata(file);
>> struct saa7146_fh *fh = NULL;
>> int result = 0;
>> - enum v4l2_buf_type type;
>>
>> DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev));
>>
>> @@ -207,10 +206,6 @@ static int fops_open(struct file *file)
>>
>> DEB_D("using: %p\n", dev);
>>
>> - type = vdev->vfl_type == VFL_TYPE_GRABBER
>> - ? V4L2_BUF_TYPE_VIDEO_CAPTURE
>> - : V4L2_BUF_TYPE_VBI_CAPTURE;
>> -
>> /* check if an extension is registered */
>> if( NULL == dev->ext ) {
>> DEB_S("no extension registered for this device\n");
>
> A few lines below "fh" is allocated and "fh->type" is set to "type".
> Simply removing "type" will result in a compilation error IMO, so I
> wonder if your compile-test really worked.
>
> Can you have a look again?
Are you perhaps looking at an older version of this source? 'fh->type'
no longer exists. Anyway, this patch is correct.
Regards,
Hans
next prev parent reply other threads:[~2012-06-15 6:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 17:58 [PATCH 1/8] [RESEND] cx231xx: Paranoic stack memory save Peter Senna Tschudin
2012-06-14 17:58 ` [PATCH 2/8] [RESEND] pvrusb2: Variables set but not used Peter Senna Tschudin
2012-06-14 17:58 ` [PATCH 3/8] [RESEND] saa7146: Variable " Peter Senna Tschudin
2012-06-15 6:02 ` Michael Hunold
2012-06-15 6:24 ` Hans Verkuil [this message]
2012-06-15 6:37 ` Michael Hunold
2012-06-14 17:58 ` [PATCH 4/8] [RESEND] saa7164: " Peter Senna Tschudin
2012-06-14 17:58 ` [PATCH 5/8] nuvoton-cir: Code cleanup: remove unused variable and function Peter Senna Tschudin
2012-06-14 19:02 ` Ben Hutchings
2012-06-15 13:26 ` Jarod Wilson
2012-06-14 17:58 ` [PATCH 6/8] stv0367: variable 'tps_rcvd' set but not used Peter Senna Tschudin
2012-06-14 17:58 ` [PATCH 7/8] stv090x: variable 'no_signal' " Peter Senna Tschudin
2012-06-14 17:58 ` [PATCH 8/8] s5h1420: Unused variable clock_setting Peter Senna Tschudin
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=4FDAD50D.1010903@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=michael@mihu.de \
--cc=peter.senna@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.