brcm80211: Remove an unused variable.
PATCH 1/1 brcm80211: Remove an unused variable.
The variable val is not used afterward. Remove the declaration and the assignment line of it.
--- drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +0 -2
@@ -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 )); }
Signature · 1 line
1.7.4.1
Quoted 5 lines · Il Han
The variable val is not used afterward. Remove the declaration and the assignment line of it.
Signed-off-by Il Han<[email protected]>---
Thanks Il. Add John as recipient as well.
Regards,
Franky
Quoted 7 lines · Franky Lin
Quoted 5 lines · Il Han
The variable val is not used afterward. Remove the declaration and the assignment line of it.
Signed-off-by Il Han<[email protected]>---
Quoted 6 lines
Thanks Il. Add John as recipient as well.
Acked-by Franky Lin <[email protected]>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
Quoted 21 lines · Il Han
The variable val is not used afterward. Remove the declaration and the assignment line of it.
Signed-off-by Il Han <[email protected]>--- drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +0
-1@@ -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 );
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c void ai_chipcontrl_epa4331(struct si_pub *sih, bool on) · line 1160
Quoted 7 lines
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +0
-1@@ -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