iwlwifi: remove unecessary if statement
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Mon, 6 Jun 2011 00:30:11 +0000 (19:30 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jun 2011 18:44:02 +0000 (14:44 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c

index c8f6da83179b0aca25bae00a208a7f6417aa8d5c..a7c66c4e5f2a2953e3d98dbc0c6af0a9f8aa3e49 100644 (file)
@@ -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;
 }