summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-4965.c
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-06-03 04:06:07 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 21:16:33 +0200
commit04975f3fc390974059ad06ac4162db7a6668a18d (patch)
treebf2e083e98a8e2a5d373a67c51948fcc4107c630 /drivers/net/wireless/iwlegacy/iwl-4965.c
parentiwlegacy: remove unreachable code (diff)
downloadlinux-04975f3fc390974059ad06ac4162db7a6668a18d.tar.xz
linux-04975f3fc390974059ad06ac4162db7a6668a18d.zip
iwlegacy: remove unecessary if statement
the code always returns ret regardless, so if(ret) check is unecessary. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-4965.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.c b/drivers/net/wireless/iwlegacy/iwl-4965.c
index f5433c74b845..ffda05ca20fd 100644
--- a/drivers/net/wireless/iwlegacy/iwl-4965.c
+++ b/drivers/net/wireless/iwlegacy/iwl-4965.c
@@ -1185,8 +1185,6 @@ static int iwl4965_send_rxon_assoc(struct iwl_priv *priv,
ret = iwl_legacy_send_cmd_pdu_async(priv, REPLY_RXON_ASSOC,
sizeof(rxon_assoc), &rxon_assoc, NULL);
- if (ret)
- return ret;
return ret;
}