]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vt6655: Fixed else after return or break warning
authorYeliz Taneroglu <yeliztaneroglu@gmail.com>
Fri, 3 Oct 2014 13:13:06 +0000 (16:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:15 +0000 (10:29 +0800)
The following patch fixes the checkpatch.pl warning:

drivers/staging/vt6655/hostap.c warning: else is not generally useful after a break or return

Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/hostap.c

index ae0dade229d84cc18a226e2fe1ba7b69e43f2f3a..2db08df0656d97494298d047623db1fdb3cbfbba 100644 (file)
@@ -182,8 +182,7 @@ int vt6655_hostap_set_hostapd(struct vnt_private *pDevice,
 
        if (val)
                return hostap_enable_hostapd(pDevice, rtnl_locked);
-       else
-               return hostap_disable_hostapd(pDevice, rtnl_locked);
+       return hostap_disable_hostapd(pDevice, rtnl_locked);
 }
 
 /*