diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-14 08:09:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-15 03:31:44 +0300 |
commit | 24c6c29d85af3748b2d79b46f72188b335566340 (patch) | |
tree | 9a6560e8dc56b9db6245888419aeaf7f216de813 | |
parent | 04b2172a6a489dce3efb8d662516b16fc33002fa (diff) | |
download | linux-24c6c29d85af3748b2d79b46f72188b335566340.tar.xz |
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: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 698267ebc61d..d1eedfb5e405 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3351,10 +3351,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; } |