drivers: staging: gdm72xx: Removed unnecessary else expression.
authorGulsah Kose <gulsah.1004@gmail.com>
Fri, 26 Sep 2014 21:00:13 +0000 (00:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:27:35 +0000 (23:27 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in netlink_k.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/netlink_k.c

index 9bf00e6..643eaab 100644 (file)
@@ -147,12 +147,11 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
 
        if (!ret) {
                return len;
-       } else {
-               if (ret != -ESRCH) {
-                       pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n",
-                              group, type, len, ret);
-               }
-               ret = 0;
        }
+       if (ret != -ESRCH) {
+               pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n",
+                      group, type, len, ret);
+       }
+       ret = 0;
        return ret;
 }