Skip to contentSkip to conversation

staging: wilc1000: Simplify code by eliminating else block

PATCH Superseded Janani Ravichandran 1 participant 1 message Feb 14, 2016 Staging

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Simplify code by eliminating else block

Remove else block here as it is not useful after the return statement in the corresponding if block. This simplifies code. This issue was identified by checkpatch.

---
 drivers/staging/wilc1000/host_interface.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/wilc1000/host_interface.c +2 -3
index 472fd7f..fe27560 100644
@@ -3355,10 +3355,9 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,
 		*pu32RcvdAssocRespInfoLen = 0;
 		PRINT_ER("Failed to send association response config packet\n");
 		return -EINVAL;
-	} else {
-		*pu32RcvdAssocRespInfoLen = wid.size;
 	}
-
+	
+	*pu32RcvdAssocRespInfoLen = wid.size;
 	return result;
 }
 
Signature · 1 line
2.5.0