From: SF Markus Elfring <hidden> Date: 2016-01-01 18:21:32
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:16:05 +0100
A few update suggestions were taken into account
from static source code analysis.
Markus Elfring (2):
Delete an unnecessary variable initialisation in ath9k_hif_usb_rx_stream()
Replace a variable initialisation by an assignment in ath9k_htc_set_channel()
drivers/net/wireless/ath/ath9k/hif_usb.c | 2 +-
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 7 ++-----
2 files changed, 3 insertions(+), 6 deletions(-)
--
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: SF Markus Elfring <hidden> Date: 2016-01-01 18:23:49
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:00:53 +0100
Omit explicit initialisation at the beginning for one local variable
that is redefined before its first use.
Signed-off-by: Markus Elfring <redacted>
---
drivers/net/wireless/ath/ath9k/hif_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: SF Markus Elfring <hidden> Date: 2016-01-01 18:25:12
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:09:32 +0100
Replace an explicit initialisation for one local variable at the beginning
by a conditional assignment.
Signed-off-by: Markus Elfring <redacted>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:09:32 +0100
Replace an explicit initialisation for one local variable at the beginning
by a conditional assignment.
Signed-off-by: Markus Elfring <redacted>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:00:53 +0100
Omit explicit initialisation at the beginning for one local variable
that is redefined before its first use.
Signed-off-by: Markus Elfring <redacted>
---
drivers/net/wireless/ath/ath9k/hif_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi Kalle,
On Sat, Jan 2, 2016 at 5:25 AM, SF Markus Elfring
[off-list ref] wrote:
From: Markus Elfring <redacted>
Date: Fri, 1 Jan 2016 19:09:32 +0100
Replace an explicit initialisation for one local variable at the beginning
by a conditional assignment.
Signed-off-by: Markus Elfring <redacted>
This looks sane to me.
Reviewed-by: Julian Calaby <redacted>
Thanks,
Julian Calaby
@@ -246,7 +246,7 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv,structieee80211_conf*conf=&common->hw->conf;boolfastcc;structieee80211_channel*channel=hw->conf.chandef.chan;-structath9k_hw_cal_data*caldata=NULL;+structath9k_hw_cal_data*caldata;enumhtc_phymodemode;__be16htc_mode;u8cmd_rsp;
@@ -274,10 +274,7 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv,priv->ah->curchan->channel,channel->center_freq,conf_is_ht(conf),conf_is_ht40(conf),fastcc);--if(!fastcc)-caldata=&priv->caldata;-+caldata=fastcc?NULL:&priv->caldata;ret=ath9k_hw_reset(ah,hchan,caldata,fastcc);if(ret){ath_err(common,--
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html