linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Taehee Yoo <ap420073@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rtlwifi: rtl8192cu: Remove unnecessary parameter
Date: Mon, 09 Mar 2015 10:40:20 -0500	[thread overview]
Message-ID: <54FDBEE4.8090706@lwfinger.net> (raw)
In-Reply-To: <1425913628-6415-1-git-send-email-ap420073@gmail.com>

On 03/09/2015 10:07 AM, Taehee Yoo wrote:
> Remove unnecessary parameter in rtl8192cu/hw.c
>
> Signed-off-by: Taehee Yoo <ap420073@gmail.com>
> ---
>   drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)

The patch is OK, but the subject is awful. When I first saw it, I thought that 
you were removing a module parameter. On inspection, I see that you are removing 
function arguments from _beacon_function_enable(). Why not say that?

Larry

>
> diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
> index 0c20dd7..43b2b20 100644
> --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
> +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
> @@ -1471,8 +1471,7 @@ static void _InitBeaconParameters(struct ieee80211_hw *hw)
>   		rtl_write_word(rtlpriv, REG_BCNTCFG, 0x66FF);
>   }
>
> -static void _beacon_function_enable(struct ieee80211_hw *hw, bool Enable,
> -				    bool Linked)
> +static void _beacon_function_enable(struct ieee80211_hw *hw)
>   {
>   	struct rtl_priv *rtlpriv = rtl_priv(hw);
>
> @@ -1517,7 +1516,7 @@ void rtl92cu_set_beacon_related_registers(struct ieee80211_hw *hw)
>   		rtl_write_byte(rtlpriv, REG_RXTSF_OFFSET_CCK, 0x50);
>   		rtl_write_byte(rtlpriv, REG_RXTSF_OFFSET_OFDM, 0x50);
>   	}
> -	_beacon_function_enable(hw, true, true);
> +	_beacon_function_enable(hw);
>   }
>
>   void rtl92cu_set_beacon_interval(struct ieee80211_hw *hw)
>


  reply	other threads:[~2015-03-09 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 15:07 [PATCH] rtlwifi: rtl8192cu: Remove unnecessary parameter Taehee Yoo
2015-03-09 15:40 ` Larry Finger [this message]
2015-03-09 16:27   ` ap420073 .
2015-03-13 14:21 ` rtlwifi: rtl8192cu: remove unused arguments from _beacon_function_enable() Kalle Valo

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=54FDBEE4.8090706@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=ap420073@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).