linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] brcm80211: Remove an unused variable.
@ 2012-05-08  6:35 Il Han
  2012-05-08 18:05 ` Franky Lin
  2012-05-09  9:15 ` Hauke Mehrtens
  0 siblings, 2 replies; 4+ messages in thread
From: Il Han @ 2012-05-08  6:35 UTC (permalink / raw)
  To: Franky (Zhenhui) Lin
  Cc: Brett Rudley, Roland Vossen, Arend van Spriel, Kan Yan,
	linux-wireless, Il Han

The variable val is not used afterward.
Remove the declaration and the assignment line of it.

Signed-off-by: Il Han <corone.il.han@gmail.com>
---
 drivers/net/wireless/brcm80211/brcmsmac/aiutils.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
index c93ea35..f79b526 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
@@ -1141,7 +1141,6 @@ u32 ai_gpiocontrol(struct si_pub *sih, u32 mask, u32 val, u8 priority)
 void ai_chipcontrl_epa4331(struct si_pub *sih, bool on)
 {
 	struct bcma_device *cc;
-	u32 val;
 
 	cc = ai_findcore(sih, CC_CORE_ID, 0);
 
@@ -1156,7 +1155,6 @@ void ai_chipcontrl_epa4331(struct si_pub *sih, bool on)
 			bcma_set32(cc, CHIPCREGOFFS(chipcontrol),
 				   CCTRL4331_EXTPA_EN);
 	} else {
-		val &= ~(CCTRL4331_EXTPA_EN | CCTRL4331_EXTPA_ON_GPIO2_5);
 		bcma_mask32(cc, CHIPCREGOFFS(chipcontrol),
 			    ~(CCTRL4331_EXTPA_EN | CCTRL4331_EXTPA_ON_GPIO2_5));
 	}
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] brcm80211: Remove an unused variable.
  2012-05-08  6:35 [PATCH] brcm80211: Remove an unused variable Il Han
@ 2012-05-08 18:05 ` Franky Lin
  2012-05-08 19:09   ` Arend van Spriel
  2012-05-09  9:15 ` Hauke Mehrtens
  1 sibling, 1 reply; 4+ messages in thread
From: Franky Lin @ 2012-05-08 18:05 UTC (permalink / raw)
  To: Il Han, John W. Linville
  Cc: Brett Rudley, Roland Vossen, Arend van Spriel, Kan Yan,
	linux-wireless

On 05/07/2012 11:35 PM, Il Han wrote:
> The variable val is not used afterward.
> Remove the declaration and the assignment line of it.
>
> Signed-off-by: Il Han<corone.il.han@gmail.com>
> ---

Thanks Il. Add John as recipient as well.

Acked-by: Franky Lin <frankyl@broadcom.com>

Regards,
Franky


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] brcm80211: Remove an unused variable.
  2012-05-08 18:05 ` Franky Lin
@ 2012-05-08 19:09   ` Arend van Spriel
  0 siblings, 0 replies; 4+ messages in thread
From: Arend van Spriel @ 2012-05-08 19:09 UTC (permalink / raw)
  To: Franky Lin
  Cc: Il Han, John W. Linville, Brett Rudley, Roland Vossen, Kan Yan,
	linux-wireless

On 05/08/2012 08:05 PM, Franky Lin wrote:
> On 05/07/2012 11:35 PM, Il Han wrote:
>> The variable val is not used afterward.
>> Remove the declaration and the assignment line of it.
>>
>> Signed-off-by: Il Han<corone.il.han@gmail.com>
>> ---
> 
> Thanks Il. Add John as recipient as well.
> 
> Acked-by: Franky Lin <frankyl@broadcom.com>
> 
> Regards,
> Franky

My rule of thumb:

use get_maintainer.pl script and address you patches to the given
maintainer (9 out of 10 you get a sensible maintainer from it).

So for this patch, send the patch to John Linville and CC linux-wireless
list and others you consider specially interested.

Gr. AvS


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] brcm80211: Remove an unused variable.
  2012-05-08  6:35 [PATCH] brcm80211: Remove an unused variable Il Han
  2012-05-08 18:05 ` Franky Lin
@ 2012-05-09  9:15 ` Hauke Mehrtens
  1 sibling, 0 replies; 4+ messages in thread
From: Hauke Mehrtens @ 2012-05-09  9:15 UTC (permalink / raw)
  To: Il Han
  Cc: Franky (Zhenhui) Lin, Brett Rudley, Roland Vossen,
	Arend van Spriel, Kan Yan, linux-wireless

On 05/08/2012 08:35 AM, Il Han wrote:
> The variable val is not used afterward.
> Remove the declaration and the assignment line of it.
> 
> Signed-off-by: Il Han <corone.il.han@gmail.com>
> ---
>  drivers/net/wireless/brcm80211/brcmsmac/aiutils.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
> index c93ea35..f79b526 100644
> --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
> +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
> @@ -1141,7 +1141,6 @@ u32 ai_gpiocontrol(struct si_pub *sih, u32 mask, u32 val, u8 priority)
>  void ai_chipcontrl_epa4331(struct si_pub *sih, bool on)
>  {
>  	struct bcma_device *cc;
> -	u32 val;
>  
>  	cc = ai_findcore(sih, CC_CORE_ID, 0);
>  
> @@ -1156,7 +1155,6 @@ void ai_chipcontrl_epa4331(struct si_pub *sih, bool on)
>  			bcma_set32(cc, CHIPCREGOFFS(chipcontrol),
>  				   CCTRL4331_EXTPA_EN);
>  	} else {
> -		val &= ~(CCTRL4331_EXTPA_EN | CCTRL4331_EXTPA_ON_GPIO2_5);
>  		bcma_mask32(cc, CHIPCREGOFFS(chipcontrol),
>  			    ~(CCTRL4331_EXTPA_EN | CCTRL4331_EXTPA_ON_GPIO2_5));
>  	}

Hi,

I send a patch to remove the hole function [0] as it is not referenced
in brcmsmac and a function doing the same thing is already in bcma.
I have no problem with this patch and I hope merging this should not be
hard.

Hauke

[0]: http://www.spinics.net/lists/linux-wireless/msg89364.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-09  9:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08  6:35 [PATCH] brcm80211: Remove an unused variable Il Han
2012-05-08 18:05 ` Franky Lin
2012-05-08 19:09   ` Arend van Spriel
2012-05-09  9:15 ` Hauke Mehrtens

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).