From: Luis de Bethencourt <luis@debethencourt.com>
To: Sunil Shahu <shshahu@gmail.com>
Cc: gregkh@linuxfoundation.org, dan.carpenter@oracle.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
sudipm.mukherjee@gmail.com
Subject: Re: [PATCH] staging: rtl8712: rtl871x_security.c: remove unnecessary variable initialization
Date: Fri, 26 Jun 2015 17:50:27 +0200 [thread overview]
Message-ID: <20150626155025.GA463@goodgumbo.baconseed.org> (raw)
In-Reply-To: <1435327944-7425-1-git-send-email-shshahu@gmail.com>
On Fri, Jun 26, 2015 at 07:42:24PM +0530, Sunil Shahu wrote:
> Variable "u32 c" always re-initialize in for loop.
> Initialized value of "u32 c" is not used in function
> and is redundant, hence removed.
>
> Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Sunil Shahu <shshahu@gmail.com>
> ---
> drivers/staging/rtl8712/rtl871x_security.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8712/rtl871x_security.c b/drivers/staging/rtl8712/rtl871x_security.c
> index 21465c9..8627928 100644
> --- a/drivers/staging/rtl8712/rtl871x_security.c
> +++ b/drivers/staging/rtl8712/rtl871x_security.c
> @@ -125,7 +125,7 @@ static u8 crc32_reverseBit(u8 data)
> static void crc32_init(void)
> {
> sint i, j;
> - u32 c = 0x12340000;
> + u32 c;
> u8 *p = (u8 *)&c, *p1;
> u8 k;
>
> --
> 1.9.1
The patch is good, the value assigned to c is immediately overwritten.
Unfortunately the patch fails to apply in staging-testing and linux-next. Could
you please rebase?
Thanks,
Luis
next prev parent reply other threads:[~2015-06-26 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 14:12 [PATCH] staging: rtl8712: rtl871x_security.c: remove unnecessary variable initialization Sunil Shahu
2015-06-26 15:50 ` Luis de Bethencourt [this message]
2015-06-26 15:51 ` Dan Carpenter
2015-06-26 16:20 ` Luis de Bethencourt
2015-07-03 5:50 ` Sunil Shahu
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=20150626155025.GA463@goodgumbo.baconseed.org \
--to=luis@debethencourt.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shshahu@gmail.com \
--cc=sudipm.mukherjee@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.