net: wireless: ath: Remove unnecessary semicolon
Subsystems (6)
PATCH RESEND 1/10 net: wireless: ath: Remove unnecessary semicolon
This patch is to the htt_rx.c that removes unneeded semicolon which is reported by coccicheck.
Here semicolon just create empty statement so please remote it.
--- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/htt_rx.c +1 -1
@@ -2077,7 +2077,7 @@ void ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)ath10k_dbg_dump (ar,ATH10K_DBG_HTT_DUMP ,NULL ,"htt event: " , skb->data, skb->len);break ; - }; + }/* Free the indication buffer */ dev_kfree_skb_any (skb);
Signature · 1 line
2.5.3
PATCH RESEND 2/10 net: wireless: ath: Remove unnecessary semicolon
This patch is to the ath10k/wmi.h that removes unneeded semicolon which
is reported by coccicheck.
Here semicolon just create empty statement so please remote it.
--- drivers/net/wireless/ath/ath10k/wmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/wmi.h +1 -1
@@ -1675,7 +1675,7 @@ static inline const char *ath10k_wmi_phymode_str(enum wmi_phy_mode mode)/* no default handler to allow compiler to check that the * enum is fully handled */ - }; + }return "<unknown>" ; }
Signature · 1 line
2.5.3
PATCH RESEND 3/10 net: wireless: rtwifi: Remove duplicated arguments to |
In reply to Punit VaraRemove uncessary repeated arguments COMP_EFUSE, COMP_REGD, COMP_CHAN
with OR(|)
This is patch to the debug.c file that removes following warning reported by coccicheck:
-duplicated argument to & or |
--- drivers/net/wireless/rtlwifi/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rtlwifi/debug.c +3 -3
@@ -37,9 +37,9 @@ void rtl_dbgp_flag_init(struct ieee80211_hw *hw)COMP_BEACON |COMP_RATE |COMP_RXDESC |COMP_DIG |COMP_TXAGC |COMP_POWER |COMP_POWER_TRACKING |COMP_BB_POWERSAVING |COMP_SWAS |COMP_RF |COMP_TURBO |COMP_RATR |COMP_CMD | -COMP_EFUSE |COMP_QOS |COMP_MAC80211 |COMP_REGD |COMP_CHAN | -COMP_EASY_CONCURRENT |COMP_EFUSE |COMP_QOS |COMP_MAC80211 | -COMP_REGD |COMP_CHAN |COMP_BT_COEXIST ; +COMP_EFUSE |COMP_QOS |COMP_MAC80211 |COMP_CHAN | +COMP_EASY_CONCURRENT |COMP_QOS |COMP_MAC80211 | +COMP_REGD |COMP_BT_COEXIST ;for (i =0 ; i <DBGP_TYPE_MAX ; i++)
Signature · 1 line
2.5.3
PATCH RESEND 4/10 net: wireless: brcm80211: Remove duplicated arguments to |
In reply to Punit VaraRemove uncessary repeated arguments with OR(|)
This is patch to the brcmsmac/channel.c file that removes following
warning reported by coccicheck:
-duplicated argument to & or |
--- drivers/net/wireless/brcm80211/brcmsmac/channel.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/brcm80211/brcmsmac/channel.c +0 -1
@@ -652,7 +652,6 @@ static void brcms_reg_apply_radar_flags(struct wiphy *wiphy)*/ if (!(ch->flags &IEEE80211_CHAN_DISABLED )) ch->flags |=IEEE80211_CHAN_RADAR | -IEEE80211_CHAN_NO_IR |IEEE80211_CHAN_NO_IR ; } }
Signature · 1 line
2.5.3
PATCH RESEND 5/10 net: wireless: simplify return flow for zd1201_setconfig16
In reply to Punit VaraThis patch is to the zd1201.c file that fixes up warning reported by coccicheck:
WARNING: end returns can be simplified and declaration on line 1658 can be dropped
Prefer direct return value instead of writing 2-3 more sentence.
--- drivers/net/wireless/zd1201.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/wireless/zd1201.c +1 -5
@@ -1655,15 +1655,11 @@ static int zd1201_set_maxassoc(struct net_device *dev, struct iw_request_info *info, struct iw_param *rrq, char *extra) { struct zd1201 *zd = netdev_priv(dev); -int err;if (!zd->ap)return -EOPNOTSUPP ; - err =zd1201_setconfig16 (zd,ZD1201_RID_CNFMAXASSOCSTATIONS , rrq->value); -if (err) -return err; -return 0 ; +return zd1201_setconfig16 (zd,ZD1201_RID_CNFMAXASSOCSTATIONS , rrq->value); } static int zd1201_get_maxassoc(struct net_device *dev,
Signature · 1 line
2.5.3
PATCH RESEND 6/10 net: wireless: ath: simplify return flow for carl9170_regwrite_result()
In reply to Punit VaraThis patch is to the carl9170/phy.c file that fixes warning reported by coccicheck :
WARNING: end returns can be simplified
I have removed unneccessary variable declaration and simply return flow for carl9170_regwrite_result()
--- drivers/net/wireless/ath/carl9170/phy.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/wireless/ath/carl9170/phy.c +1 -6
@@ -966,7 +966,6 @@ static const struct carl9170_phy_freq_entry carl9170_phy_freq_params[] = {static int carl9170_init_rf_bank4_pwr (struct ar9170 *ar,bool band5ghz,u32 freq,enum carl9170_bw bw) { -int err;u32 d0, d1, td0, td1, fd0, fd1;u8 chansel;u8 refsel0 =1 , refsel1 =0 ;
@@ -1024,11 +1023,7 @@ static int carl9170_init_rf_bank4_pwr(struct ar9170 *ar, bool band5ghz,carl9170_regwrite (0x1c58e8 , fd1);carl9170_regwrite_finish (); - err =carl9170_regwrite_result (); -if (err) -return err; - -return 0 ; +return carl9170_regwrite_result (); } static const struct carl9170_phy_freq_params *
Signature · 1 line
2.5.3
PATCH RESEND 7/10 net: wireless: iwlegacy: Remove unneeded variable ret
In reply to Punit VaraThis patch is to the 3945-mac.c file that fixes up following warning by coccicheck:
drivers/net/wireless/iwlegacy/3945-mac.c:247:5-8: Unneeded variable:
"ret". Return "- EOPNOTSUPP" on line 249
Return -EOPNOTSUPP directly instead of return using ret
--- drivers/net/wireless/iwlegacy/3945-mac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/wireless/iwlegacy/3945-mac.c +1 -4
@@ -244,9 +244,7 @@ il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,static int il3945_remove_static_key (struct il_priv *il) { -int ret = -EOPNOTSUPP ; - -return ret; +return -EOPNOTSUPP ; } static int
@@ -529,7 +527,6 @@ il3945_tx_skb(struct il_priv *il,if (unlikely (tid >=MAX_TID_COUNT )) goto drop; } -/* Descriptor for chosen Tx queue */ txq = &il->txq[txq_id]; q = &txq->q;
Signature · 1 line
2.5.3
Re: [RESEND PATCH 07/10] net: wireless: iwlegacy: Remove unneeded variable ret
Hello.
Quoted 29 lines · Punit Vara
This patch is to the
3945-mac.cfile that fixes up following warning by coccicheck:drivers/net/wireless/iwlegacy/3945-mac.c:247:5-8: Unneeded variable:
"ret". Return "- EOPNOTSUPP" on line 249Return
-EOPNOTSUPPdirectly instead of return using retSigned-off-by Punit Vara <[email protected]>--- drivers/net/wireless/iwlegacy/3945-mac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/net/wireless/iwlegacy/3945-mac.c +1
-3@@ -244,9 +244,7 @@ il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,static int il3945_remove_static_key (struct il_priv *il) { -int ret = -EOPNOTSUPP ; - -return ret; +return -EOPNOTSUPP ; } static int
drivers/net/wireless/iwlegacy/3945-mac.c il3945_tx_skb(struct il_priv *il, · line 532
Quoted 4 lines
drivers/net/wireless/iwlegacy/3945-mac.c +0
-1@@ -529,7 +527,6 @@ il3945_tx_skb(struct il_priv *il,if (unlikely (tid >=MAX_TID_COUNT )) goto drop; } -
Unrelated white space change.
MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [RESEND PATCH 07/10] net: wireless: iwlegacy: Remove unneeded variable ret
Quoted 29 lines · Sergei Shtylyov
Quoted 29 lines
This patch is to the
3945-mac.cfile that fixes up following warning by coccicheck:drivers/net/wireless/iwlegacy/3945-mac.c:247:5-8: Unneeded variable:
"ret". Return "- EOPNOTSUPP" on line 249Return
-EOPNOTSUPPdirectly instead of return using retSigned-off-by Punit Vara <[email protected]>--- drivers/net/wireless/iwlegacy/3945-mac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/net/wireless/iwlegacy/3945-mac.c +1
-3@@ -244,9 +244,7 @@ il3945_set_dynamic_key(struct il_priv *il, structieee80211_key_conf *keyconf, static int il3945_remove_static_key(struct il_priv *il) { - int ret = -EOPNOTSUPP; - -return ret; + return -EOPNOTSUPP; }
Quoted 8 lines
drivers/net/wireless/iwlegacy/3945-mac.c il3945_tx_skb(struct il_priv *il, · line 532
Quoted 6 lines
static int
drivers/net/wireless/iwlegacy/3945-mac.c +0
-1@@ -529,7 +527,6 @@ il3945_tx_skb(struct il_priv *il,if (unlikely (tid >=MAX_TID_COUNT )) goto drop; } -Unrelated white space change.
And I've already complained about it! Please remove this hunk.
MBR, Sergei
PATCH RESEND 8/10 net: wireless: brcm80211: Remove unneeded variable which return 0
In reply to Punit VaraThis is patch to the brcmsmac/main.c that removes unnecessary variable which was declared to return zero.
This patch fixes up warning reported by coccicheck:
-Unneeded variable: "err". Return "0" on line 3788
--- drivers/net/wireless/brcm80211/brcmsmac/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/main.c +1 -2
@@ -3777,7 +3777,6 @@ static void brcms_c_set_ps_ctrl(struct brcms_c_info *wlc)*/ static int brcms_c_set_mac (struct brcms_bss_cfg *bsscfg) { -int err =0 ;struct brcms_c_info *wlc = bsscfg->wlc;/* enter the MAC addr into the RXE match registers */
@@ -3785,7 +3784,7 @@ static int brcms_c_set_mac(struct brcms_bss_cfg *bsscfg)brcms_c_ampdu_macaddr_upd (wlc); -return err; +return 0 ; }/* Write the BSS config's BSSID address to core (set_bssid in d11procs.tcl).
Signature · 1 line
2.5.3
PATCH RESEND 9/10 net: wireless: brcm80211: Remove unneeded variable ret_code returning 0
In reply to Punit VaraThis patch is to the brcmsmac/stf.c that fixes up warning caught by coccicheck:
-Unneeded variable: "ret_code". Return "0" on line 328
Remove unneccesary variable ret_code created to return zero.
--- drivers/net/wireless/brcm80211/brcmsmac/stf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/stf.c +2 -3
@@ -306,7 +306,6 @@ int brcms_c_stf_txchain_set(struct brcms_c_info *wlc, s32 int_val, bool force)*/ int brcms_c_stf_ss_update (struct brcms_c_info *wlc,struct brcms_band *band) { -int ret_code =0 ;u8 prev_stf_ss;u8 upd_stf_ss;
@@ -325,7 +324,7 @@ int brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band) PHY_TXC1_MODE_SISO :PHY_TXC1_MODE_CDD ; }else {if (wlc->band != band) -return ret_code; +return 0 ; upd_stf_ss = (wlc->stf->txstreams ==1 ) ?PHY_TXC1_MODE_SISO : band->band_stf_ss_mode; }
@@ -334,7 +333,7 @@ int brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band)brcms_b_band_stf_ss_set (wlc->hw, upd_stf_ss); } -return ret_code; +return 0 ; }int brcms_c_stf_attach (struct brcms_c_info *wlc)
Signature · 1 line
2.5.3
PATCH RESEND 10/10 net: wireless: ath: Remove unneeded variable ret returning 0
In reply to Punit VaraThis patch is to the ath5k/eeprom.c that fixes up warning caught by coccicheck:
-Unneeded variable: "ret". Return "0" on line 1733
Remove unneccesary variable ret created to return zero.
--- drivers/net/wireless/ath/ath5k/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath5k/eeprom.c +2 -2
@@ -1707,7 +1707,7 @@ ath5k_eeprom_read_spur_chans(struct ath5k_hw *ah)struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;u32 offset;u16 val; -int ret =0 , i; +int i; offset =AR5K_EEPROM_CTL (ee->ee_version) +AR5K_EEPROM_N_CTLS (ee->ee_version);
@@ -1730,7 +1730,7 @@ ath5k_eeprom_read_spur_chans(struct ath5k_hw *ah) } } -return ret; +return 0 ; }
Signature · 1 line
2.5.3
Quoted 4 lines · punit vara
This patch is to the
htt_rx.cthat removes unneeded semicolon which is reported by coccicheck.Here semicolon just create empty statement so please remote it.
s/remote/remove
Instead of "net: wireless: ath: Remove unnecessary semicolon" the subject should be "ath10k: Remove unnecessary semicolon"
and please combine this patch and the next patch as they are similar change to the same driver.
regards
sudip