提交 24c6c29d 编写于 作者: J Janani Ravichandran 提交者: Greg Kroah-Hartman

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.
Signed-off-by: NJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 04b2172a
...@@ -3351,10 +3351,9 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif, ...@@ -3351,10 +3351,9 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,
*pu32RcvdAssocRespInfoLen = 0; *pu32RcvdAssocRespInfoLen = 0;
PRINT_ER("Failed to send association response config packet\n"); PRINT_ER("Failed to send association response config packet\n");
return -EINVAL; return -EINVAL;
} else {
*pu32RcvdAssocRespInfoLen = wid.size;
} }
*pu32RcvdAssocRespInfoLen = wid.size;
return result; return result;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册