All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prasant Jalan <prasant.jalan@gmail.com>
To: Larry.Finger@lwfinger.net
Cc: Florian Schilhabel <florian.c.schilhabel@googlemail.com>,
	Greg KH <gregkh@linuxfoundation.org>,
	geliangtang@163.com, raphael.beamonte@gmail.com,
	vijaikumar.kanagarajan@gmail.com,
	Souptick Joarder <jrdr.linux@gmail.com>,
	driverdevel <devel@driverdev.osuosl.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Prasant Jalan <prasant.jalan@gmail.com>
Subject: Re: [PATCH] staging: rtl8712: fixed multiple line derefence issue
Date: Mon, 3 Apr 2017 09:43:50 +0530	[thread overview]
Message-ID: <CAOzquK9Mnt5KhBVwko0cJunvfTRWyLhuPj_-8efQjVKMhH0T_A@mail.gmail.com> (raw)
In-Reply-To: <1490812390-27905-1-git-send-email-prasant.jalan@gmail.com>

On Thu, Mar 30, 2017 at 12:03 AM, Prasant Jalan <prasant.jalan@gmail.com> wrote:
> Checkpatch emits WARNING: Avoid multiple line dereference.
>
> Trivial indentation improvement helps fix the checkpatch warning.
>
> Signed-off-by: Prasant Jalan <prasant.jalan@gmail.com>
> ---
>  drivers/staging/rtl8712/rtl871x_xmit.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c
> index de88819..10edf00 100644
> --- a/drivers/staging/rtl8712/rtl871x_xmit.c
> +++ b/drivers/staging/rtl8712/rtl871x_xmit.c
> @@ -213,8 +213,9 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt,
>                 if (padapter->pwrctrlpriv.pwr_mode !=
>                     padapter->registrypriv.power_mgnt) {
>                         del_timer_sync(&pmlmepriv->dhcp_timer);
> -                       r8712_set_ps_mode(padapter, padapter->registrypriv.
> -                               power_mgnt, padapter->registrypriv.smart_ps);
> +                       r8712_set_ps_mode(padapter,
> +                                         padapter->registrypriv.power_mgnt,
> +                                         padapter->registrypriv.smart_ps);
>                 }
>         }
>  }
> @@ -416,15 +417,14 @@ static sint xmitframe_addmic(struct _adapter *padapter,
>                                                            &pframe[10], 6);
>                         }
>                         if (pqospriv->qos_option == 1)
> -                                       priority[0] = (u8)pxmitframe->
> -                                                     attrib.priority;
> +                               priority[0] = (u8)pxmitframe->attrib.priority;
>                         r8712_secmicappend(&micdata, &priority[0], 4);
>                         payload = pframe;
>                         for (curfragnum = 0; curfragnum < pattrib->nr_frags;
>                              curfragnum++) {
>                                 payload = (u8 *)RND4((addr_t)(payload));
> -                               payload = payload + pattrib->
> -                                         hdrlen + pattrib->iv_len;
> +                               payload = payload + pattrib->hdrlen +
> +                                         pattrib->iv_len;
>                                 if ((curfragnum + 1) == pattrib->nr_frags) {
>                                         length = pattrib->last_txcmdsz -
>                                                   pattrib->hdrlen -
> --
> 2.7.4
>


Hi all,


A gentle reminder for my small patch. Some comments will be most helpful.


Regards, Prasant Jalan

  reply	other threads:[~2017-04-03  4:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-29 18:33 [PATCH] staging: rtl8712: fixed multiple line derefence issue Prasant Jalan
2017-04-03  4:13 ` Prasant Jalan [this message]
2017-04-03  4:57   ` Joe Perches
2017-04-03  6:08     ` Prasant Jalan

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=CAOzquK9Mnt5KhBVwko0cJunvfTRWyLhuPj_-8efQjVKMhH0T_A@mail.gmail.com \
    --to=prasant.jalan@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=florian.c.schilhabel@googlemail.com \
    --cc=geliangtang@163.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jrdr.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raphael.beamonte@gmail.com \
    --cc=vijaikumar.kanagarajan@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.