All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Soumyajit Deb <debsoumyajit100@gmail.com>
Cc: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com,
	julia.lawall@inria.fr, Larry.Finger@lwfinger.net
Subject: Re: [Outreachy kernel] [Outreachy] [PATCH v4 2/3] staging: rtl8188eu: Remove unnecessary extra parentheses
Date: Tue, 7 Apr 2020 05:48:49 +0200	[thread overview]
Message-ID: <20200407054849.461747bc@redhat.com> (raw)
In-Reply-To: <20200406111706.25957-3-debsoumyajit100@gmail.com>

On Mon,  6 Apr 2020 16:47:05 +0530
Soumyajit Deb <debsoumyajit100@gmail.com> wrote:

> Remove unnecessary extra parentheses to improve code readability.
> 
> Signed-off-by: Soumyajit Deb <debsoumyajit100@gmail.com>
> ---
>  drivers/staging/rtl8188eu/core/rtw_ap.c | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c
> index eb48095b9de2..2dd775fbcc4b 100644
> --- a/drivers/staging/rtl8188eu/core/rtw_ap.c
> +++ b/drivers/staging/rtl8188eu/core/rtw_ap.c
> @@ -315,7 +315,7 @@ void expire_timeout_chk(struct adapter *padapter)
>  
>  			psta->keep_alive_trycnt = 0;
>  
> -			DBG_88E("asoc expire %pM, state = 0x%x\n", (psta->hwaddr), psta->state);
> +			DBG_88E("asoc expire %pM, state = 0x%x\n", psta->hwaddr, psta->state);

49 lines above this you have another:

                        list_del_init(&psta->asoc_list);
                        pstapriv->asoc_list_cnt--;
 
                        DBG_88E("asoc expire %pM, state = 0x%x\n", (psta->hwaddr), psta->state);

which you're then touching in 3/3, but keeping it as (psta->hwaddr). I
think this should at least be consistent.

-- 
Stefano



  reply	other threads:[~2020-04-07  3:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 11:17 [Outreachy] [PATCH v4 0/3] staging: rtl8188eu: Resolve various warnings reported by checkpatch.pl Soumyajit Deb
2020-04-06 11:17 ` [Outreachy] [PATCH v4 1/3] staging: rtl8188eu: Properly structure the multiline comment Soumyajit Deb
2020-04-06 11:17 ` [Outreachy] [PATCH v4 2/3] staging: rtl8188eu: Remove unnecessary extra parentheses Soumyajit Deb
2020-04-07  3:48   ` Stefano Brivio [this message]
2020-04-06 11:17 ` [Outreachy] [PATCH v4 3/3] staging: rtl8188eu: Line over 80 characters Soumyajit Deb

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=20200407054849.461747bc@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=debsoumyajit100@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@inria.fr \
    --cc=outreachy-kernel@googlegroups.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.