staging: wilc1000: Simplify code by eliminating else block
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 14 Feb 2016 05:09:33 +0000 (00:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:44 +0000 (16:31 -0800)
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>
drivers/staging/wilc1000/host_interface.c

index 698267ebc61d877b57ec0a962781791e5f35366e..d1eedfb5e405c2116487252e511a5ff0716e775b 100644 (file)
@@ -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;
 }