mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Fabian Frederick <fabf@skynet.be>
Cc: linux-kernel@vger.kernel.org, Julia Lawall <Julia.Lawall@lip6.fr>,
	Larry Finger <Larry.Finger@lwfinger.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org
Subject: Re: [PATCH 1/1 linux-next] staging: rtl8723au: use swap() in WMMOnAssocRsp23a()
Date: Wed, 10 Jun 2015 13:54:49 -0400	[thread overview]
Message-ID: <wrfjbngnv47q.fsf@carbonite.lan.trained-monkey.org> (raw)
In-Reply-To: <1433953937-23987-1-git-send-email-fabf@skynet.be> (Fabian Frederick's message of "Wed, 10 Jun 2015 18:32:17 +0200")

Fabian Frederick <fabf@skynet.be> writes:
> Use kernel.h macro definition.
>
> Thanks to Julia Lawall for Coccinelle scripting support.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
>  drivers/staging/rtl8723au/core/rtw_wlan_util.c | 12 +++---------
>  1 file changed, 3 insertions(+), 9 deletions(-)

Please make sure you base your patches off the staging tree, not off
linux-next.

Jes

>
> diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
> index 5280338..3c1315fc 100644
> --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c
> +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
> @@ -573,7 +573,7 @@ void WMMOnAssocRsp23a(struct rtw_adapter *padapter)
>  	inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3;
>  
>  	if (pregpriv->wifi_spec == 1) {
> -		u32 j, tmp, change_inx = false;
> +		u32 j, change_inx = false;
>  
>  		/* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */
>  		for (i = 0; i < 4; i++) {
> @@ -589,14 +589,8 @@ void WMMOnAssocRsp23a(struct rtw_adapter *padapter)
>  				}
>  
>  				if (change_inx) {
> -					tmp = edca[i];
> -					edca[i] = edca[j];
> -					edca[j] = tmp;
> -
> -					tmp = inx[i];
> -					inx[i] = inx[j];
> -					inx[j] = tmp;
> -
> +					swap(edca[i], edca[j]);
> +					swap(inx[i], inx[j]);
>  					change_inx = false;
>  				}
>  			}

      reply	other threads:[~2015-06-10 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 16:32 Fabian Frederick
2015-06-10 17:54 ` Jes Sorensen [this message]

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=wrfjbngnv47q.fsf@carbonite.lan.trained-monkey.org \
    --to=jes.sorensen@redhat.com \
    --cc=Julia.Lawall@lip6.fr \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=fabf@skynet.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®