Patchwork [2/5] iwlegacy: remove unecessary if statement

login
register
mail settings
Submitter Greg Dietsche
Date June 3, 2011, 2:06 a.m.
Message ID <1307066770-27309-2-git-send-email-Gregory.Dietsche@cuw.edu>
Download mbox | patch
Permalink /patch/98514/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Greg Dietsche - June 3, 2011, 2:06 a.m.
the code always returns ret regardless, so if(ret) check is unecessary.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 drivers/net/wireless/iwlegacy/iwl-4965.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.c b/drivers/net/wireless/iwlegacy/iwl-4965.c
index f5433c7..ffda05c 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;
 }