diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-06-06 00:30:11 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-07 18:44:02 (GMT) |
commit | 485868266150022a139b74ba4daf0da9ad86c1c0 (patch) | |
tree | 49ebb8a3394d2d850ca6bca057729d46cd28ada0 /drivers | |
parent | f973f87ec13e82256d45e11b204a8e3fb3808635 (diff) | |
download | linux-fsl-qoriq-485868266150022a139b74ba4daf0da9ad86c1c0.tar.xz |
iwlwifi: 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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index c8f6da8..a7c66c4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c @@ -178,9 +178,6 @@ static int iwlagn_send_rxon_assoc(struct iwl_priv *priv, ret = iwl_send_cmd_pdu_async(priv, ctx->rxon_assoc_cmd, sizeof(rxon_assoc), &rxon_assoc, NULL); - if (ret) - return ret; - return ret; } |