staging: wilc1000: Simplify code by eliminating else block
PATCH v2 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.
---
Changes since v1:
* Modified commit decription to respect 80 char limit.
drivers/staging/wilc1000/host_interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/wilc1000/host_interface.c +2 -3
@@ -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
Quoted 17 lines · Janani Ravichandran
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.
Signed-off-by Janani Ravichandran <[email protected]>---
Changes since v1:
* Modified commit decription to respect 80 char limit.drivers/staging/wilc1000/host_interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/staging/wilc1000/host_interface.c +0
-0
drivers/staging/wilc1000/host_interface.c static s32 host_int_get_assoc_res_info(struct wilc_vif *vif, · line 3359
Quoted 8 lines
drivers/staging/wilc1000/host_interface.c +1
-3@@ -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; } - +
You have added trailing whitespace here.
julia
Quoted 14 lines
drivers/staging/wilc1000/host_interface.c +1
-0+ *pu32RcvdAssocRespInfoLen = wid.size;return result; }Signature · 8 lines
2.5.0 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160214051750.GA26350%40janani-Inspiron-3521. For more options, visit https://groups.google.com/d/optout.
Quoted 5 lines · Julia Lawall
You have added trailing whitespace here.
Sorry! V2 sent.
Janani.
Quoted 21 lines
julia
Quoted 9 lines
+ *pu32RcvdAssocRespInfoLen = wid.size; return result;}
--
2.5.0--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/20160214051750.GA26350%40janani-Inspiron-3521
.Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.