From: Dan Carpenter <dan.carpenter@oracle.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
Florian Schilhabel <florian.c.schilhabel@googlemail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8712: remove unused variables
Date: Mon, 27 Oct 2014 14:13:12 +0300 [thread overview]
Message-ID: <20141027111312.GA6879@mwanda> (raw)
In-Reply-To: <1414326813-21444-1-git-send-email-sudipm.mukherjee@gmail.com>
On Sun, Oct 26, 2014 at 06:03:33PM +0530, Sudip Mukherjee wrote:
> @@ -262,7 +257,7 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
> if (tmp8_a != (tmp8|BIT(2)))
> goto exit_fail;
>
> - tmp32 = r8712_read32(padapter, TCR);
> + r8712_read32(padapter, TCR);
I wonder if we actually need to call r8712_read32() here? It's not
clear. The changelog should say one way or the other. Maybe something
like "I left a call to r8712_read32(padapter, TCR) because I didn't know
if it had side effects". When you note down questions you have in the
changelog that helps reviewers.
> --- a/drivers/staging/rtl8712/rtl871x_pwrctrl.c
> +++ b/drivers/staging/rtl8712/rtl871x_pwrctrl.c
> @@ -156,11 +156,9 @@ static void rpwm_workitem_callback(struct work_struct *work)
> struct pwrctrl_priv, rpwm_workitem);
> struct _adapter *padapter = container_of(pwrpriv,
> struct _adapter, pwrctrlpriv);
> - u8 cpwm = pwrpriv->cpwm;
> -
> if (pwrpriv->cpwm != pwrpriv->rpwm) {
> _enter_pwrlock(&pwrpriv->lock);
> - cpwm = r8712_read8(padapter, SDIO_HCPWM);
> + r8712_read8(padapter, SDIO_HCPWM);
Same here.
> pwrpriv->rpwm_retry = 1;
> r8712_set_rpwm(padapter, pwrpriv->rpwm);
> up(&pwrpriv->lock);
regards,
dan carpenter
next prev parent reply other threads:[~2014-10-27 11:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-26 12:33 [PATCH] staging: rtl8712: remove unused variables Sudip Mukherjee
2014-10-27 11:13 ` Dan Carpenter [this message]
2014-10-27 11:52 ` Sudip Mukherjee
2014-10-27 12:12 ` Dan Carpenter
2014-10-27 12:18 ` Sudip Mukherjee
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=20141027111312.GA6879@mwanda \
--to=dan.carpenter@oracle.com \
--cc=Larry.Finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=florian.c.schilhabel@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--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.