summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-11-16 15:41:22 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-11-20 09:33:55 +0200
commit805a57acd7b52e1ba0ad2649e33c585bba958633 (patch)
tree43e6118ab6a2f139aa1a627ff5e87e4280d18c11 /drivers
parent7af496b9eb0433bc4cb478c9a46f85509cdb5541 (diff)
downloadlinux-805a57acd7b52e1ba0ad2649e33c585bba958633.tar.bz2
ipw2x00: remove set but not used variable 'reason'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/intel/ipw2x00/ipw2200.c: In function ipw_wx_set_mlme: drivers/net/wireless/intel/ipw2x00/ipw2200.c:6805:9: warning: variable reason set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/intel/ipw2x00/ipw2200.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index ed0f06532d5e..31e43fc1d12b 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
@@ -6788,9 +6788,6 @@ static int ipw_wx_set_mlme(struct net_device *dev,
{
struct ipw_priv *priv = libipw_priv(dev);
struct iw_mlme *mlme = (struct iw_mlme *)extra;
- __le16 reason;
-
- reason = cpu_to_le16(mlme->reason_code);
switch (mlme->cmd) {
case IW_MLME_DEAUTH: