From: Greg KH <gregkh@linuxfoundation.org>
To: Laura Lawniczak <laura.lawniczak@googlemail.com>
Cc: devel@driverdev.osuosl.org, Kurt Kanzenbach <shifty91@gmail.com>,
linux-kernel@i4.cs.fau.de,
Johannes Schilling <of82ecuq@cip.cs.fau.de>,
linux-kernel@vger.kernel.org, Al Cho <acho@novell.com>,
Amarjargal Gundjalam <amarjargal16@gmail.com>
Subject: Re: [PATCH 1/1] keucr: restored lost line
Date: Thu, 6 Jun 2013 14:57:21 -0700 [thread overview]
Message-ID: <20130606215721.GA24059@kroah.com> (raw)
In-Reply-To: <1370551851-13456-2-git-send-email-laura.lawniczak@googlemail.com>
On Thu, Jun 06, 2013 at 10:50:51PM +0200, Laura Lawniczak wrote:
> This line was unfortunately removed during patch process. This caused an
> "unused variable" warning and may cause other unintended effects.
> So here it is again.
>
> Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com>
> ---
> drivers/staging/keucr/transport.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/keucr/transport.c b/drivers/staging/keucr/transport.c
> index 1f9ea58..c47a035 100644
> --- a/drivers/staging/keucr/transport.c
> +++ b/drivers/staging/keucr/transport.c
> @@ -131,6 +131,7 @@ static void usb_stor_print_cmd(struct us_data *us, struct scsi_cmnd *srb)
> break;
> }
> bn = 0;
> + blen = 0;
Really? If it's unused, why do you want to set it to something? Any
why is bn set to 0 at the end of the function as well?
Shouldn't both of these lines be removed, and the variable itself
removed too?
thanks,
greg k-h
next prev parent reply other threads:[~2013-06-06 22:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130606201631.GB14773@kroah.com>
2013-06-06 20:50 ` [PATCH 0/1] keucr: remove unused variable warning Laura Lawniczak
2013-06-06 20:50 ` [PATCH 1/1] keucr: restored lost line Laura Lawniczak
2013-06-06 21:56 ` Dan Carpenter
2013-06-06 21:57 ` Greg KH [this message]
2013-06-07 13:08 ` [PATCH] keucr: removed unnecessary variables and comments Laura Lawniczak
2013-06-09 5:28 ` Greg KH
2013-06-09 21:11 ` Johannes Schilling
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=20130606215721.GA24059@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=acho@novell.com \
--cc=amarjargal16@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=laura.lawniczak@googlemail.com \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
--cc=of82ecuq@cip.cs.fau.de \
--cc=shifty91@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