iwlegacy: remove unecessary if statement
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Fri, 3 Jun 2011 02:06:07 +0000 (21:06 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Jun 2011 19:16:33 +0000 (15:16 -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/iwlegacy/iwl-4965.c

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