All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Julian Calaby <julian.calaby@gmail.com>,
	Kalle Valo <kvalo@codeaurora.org>
Cc: Chaoming Li <chaoming_li@realsil.com.cn>,
	Johannes Berg <johannes.berg@intel.com>,
	Byeoungwook Kim <quddnr145@gmail.com>,
	Markus Elfring <elfring@users.sourceforge.net>,
	Sara Sharon <sarasharon1@gmail.com>,
	Emmanuel Grumbach <emmanuel.grumbach@intel.com>,
	Luis Felipe Dominguez Vega <lfdominguez@nauta.cu>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH MOREWORK 16/19] rtlwifi: Implement 'rtl_addr_delay()' with a switch statement
Date: Thu, 17 Mar 2016 21:38:08 -0500	[thread overview]
Message-ID: <56EB6A10.5030900@lwfinger.net> (raw)
In-Reply-To: <bc393706a087bf9746d7e91963e11819a854c4f7.1458262312.git.julian.calaby@gmail.com>

On 03/17/2016 09:28 PM, Julian Calaby wrote:
> From: Byeoungwook Kim <quddnr145@gmail.com>
>
> Doing it this way improves readability.
>
> Signed-off-by: Byeoungwook Kim <quddnr145@gmail.com>
> [Rewrote commit message]
> Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
>
> ---
>
> ... or does it.
>
> Honesltly, this is only in this list as Byeoungwook asked about it and I
> can see _some_ sort of reason why it exists.
>
> Larry, if you don't like this, please NACK it and we'll never speak of it
> again.
>
> Thanks,
>
> Julian Calaby
> ---
>   drivers/net/wireless/realtek/rtlwifi/core.c | 20 ++++++++++++++------
>   1 file changed, 14 insertions(+), 6 deletions(-)

I thought I had already NACKed it, but just in case:

NACK.

Larry

>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/core.c b/drivers/net/wireless/realtek/rtlwifi/core.c
> index 0f48048..1cf367f 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/core.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/core.c
> @@ -53,18 +53,26 @@ EXPORT_SYMBOL(channel5g_80m);
>
>   void rtl_addr_delay(u32 addr)
>   {
> -	if (addr == 0xfe)
> +	switch (addr) {
> +	case 0xfe:
>   		msleep(50);
> -	else if (addr == 0xfd)
> +		break;
> +	case 0xfd:
>   		msleep(5);
> -	else if (addr == 0xfc)
> +		break;
> +	case 0xfc:
>   		msleep(1);
> -	else if (addr == 0xfb)
> +		break;
> +	case 0xfb:
>   		usleep_range(50, 100);
> -	else if (addr == 0xfa)
> +		break;
> +	case 0xfa:
>   		usleep_range(5, 10);
> -	else if (addr == 0xf9)
> +		break;
> +	case 0xf9:
>   		usleep_range(1, 2);
> +		break;
> +	}
>   }
>   EXPORT_SYMBOL(rtl_addr_delay);
>
>


  reply	other threads:[~2016-03-18  2:38 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18  2:20 [PATCH 00/19] Pending Cleanup patches for 4.7 Julian Calaby
2016-03-18  2:27 ` [ath9k-devel] " Julian Calaby
2016-03-18  2:16 ` [ath9k-devel] [PATCH 01/19] ath9k: Remove unnecessary ?: operator Julian Calaby
2016-03-18  2:16   ` Julian Calaby
2016-04-07 16:38   ` [ath9k-devel] [01/19] " Kalle Valo
2016-04-07 16:38   ` Kalle Valo
2016-03-18  2:20 ` [PATCH 02/19] ipw2x00: use to_pci_dev() Julian Calaby
2016-03-24 22:28   ` Stanislav Yakovlev
2016-03-18  2:21 ` [PATCH 03/19] wlcore: use to_delayed_work() Julian Calaby
2016-03-18  2:22 ` [PATCH 04/19] wl1251: " Julian Calaby
2016-03-18  2:22 ` [PATCH 05/19] rtlwifi: " Julian Calaby
2016-03-18  2:44   ` Larry Finger
2016-03-18  2:22 ` [ath9k-devel] [PATCH 06/19] ath9k_htc: Delete unnecessary variable initialisation Julian Calaby
2016-03-18  2:22   ` Julian Calaby
2016-03-18  2:23 ` [PATCH 07/19] brcmfmac: " Julian Calaby
2016-03-18  2:23 ` [PATCH 08/19] iwlegacy: Return directly if allocation fails in il_eeprom_init() Julian Calaby
2016-03-18 13:41   ` SF Markus Elfring
2016-03-18 14:33     ` Julian Calaby
2016-03-18 14:53       ` Dan Carpenter
2016-03-19 13:16         ` Julian Calaby
2016-03-18  2:24 ` [PATCH 09/19] iwl4965: Fix a null pointer dereference in il_tx_queue_free and il_cmd_queue_free Julian Calaby
2016-03-18  2:24 ` [PATCH 10/19] b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init Julian Calaby
2016-03-18  2:24 ` [PATCH 11/19] rtl818x_pci: Disable pci device in error handling code Julian Calaby
2016-03-18  2:25 ` [PATCH DETAIL 12/19] rsi: Delete unnecessary variable initialisation Julian Calaby
2016-03-18  2:25 ` [PATCH DETAIL 13/19] " Julian Calaby
2016-03-19 12:27   ` SF Markus Elfring
2016-03-19 13:15     ` Julian Calaby
2016-03-18  2:27 ` [PATCH MOREWORK 14/19] rtl818x_pci: Fix a memory leak in rtl8180_init_rx_ring Julian Calaby
2016-04-08  1:38   ` Julian Calaby
     [not found]   ` <CAN8YU5OqKhqaucUs04Xe3wT8D1_p3B8miWKDQLv-aGakr12ZWA@mail.gmail.com>
2016-04-11  0:11     ` Julian Calaby
2016-04-12 21:13       ` Andrea Merello
2016-04-26  9:08   ` [MOREWORK, " Kalle Valo
2016-03-18  2:27 ` [PATCH MOREWORK 15/19] rsi: Move variable initialisation into error code Julian Calaby
2016-03-18  2:28 ` [PATCH MOREWORK 16/19] rtlwifi: Implement 'rtl_addr_delay()' with a switch statement Julian Calaby
2016-03-18  2:38   ` Larry Finger [this message]
2016-03-18  3:32     ` Julian Calaby
2016-03-18  2:28 ` [PATCH MOREWORK 17/19] iwl4965: Fix a memory leak in error handling code of __il4965_up Julian Calaby
2016-03-18 10:48   ` Stanislaw Gruszka
2016-03-18 11:12     ` Julian Calaby
2016-03-18 11:22       ` Stanislaw Gruszka
2016-03-18  2:29 ` [PATCH MOREWORK 18/19] iwl4965: Fix more memory leaks in __il4965_up() Julian Calaby
2016-03-18 10:53   ` Stanislaw Gruszka
2016-03-21 13:28   ` Stanislaw Gruszka
2016-03-18  2:29 ` [PATCH CONTROVERSIAL 19/19] iwlegacy: Rename label in il_eeprom_init() Julian Calaby
2016-03-18 10:31   ` Stanislaw Gruszka
2016-03-18 10:42     ` Julian Calaby
2016-03-18 11:01   ` Dan Carpenter
2016-03-18 11:14     ` Julian Calaby
2016-04-07 12:07 ` [PATCH 00/19] Pending Cleanup patches for 4.7 Kalle Valo
2016-04-07 12:08   ` [ath9k-devel] " Kalle Valo
2016-04-07 16:37   ` Kalle Valo
2016-04-07 16:38     ` [ath9k-devel] " Kalle Valo
2016-04-08  0:56     ` Julian Calaby
2016-04-08  1:26       ` [ath9k-devel] " Julian Calaby
2016-04-08  1:35       ` Julian Calaby
2016-04-08  1:36         ` [ath9k-devel] " Julian Calaby
2016-04-15 12:04         ` Kalle Valo
2016-04-15 12:04           ` [ath9k-devel] " Kalle Valo
2016-04-15 11:53       ` Kalle Valo
2016-04-15 11:53         ` [ath9k-devel] " 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=56EB6A10.5030900@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=chaoming_li@realsil.com.cn \
    --cc=elfring@users.sourceforge.net \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes.berg@intel.com \
    --cc=julian.calaby@gmail.com \
    --cc=kvalo@codeaurora.org \
    --cc=lfdominguez@nauta.cu \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quddnr145@gmail.com \
    --cc=sarasharon1@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.