drivers: staging: gdm72xx: Removed unnecessary braces.
authorGulsah Kose <gulsah.1004@gmail.com>
Fri, 26 Sep 2014 21:00:14 +0000 (00:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:27:35 +0000 (23:27 -0400)
This patch fixes "braces {} are not necessary for single statement
blocks" 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 643eaab9664f54d7f781398224d11fd5e6f8db46..9d78bfcdb2c36364916913b9fc2136e1cf601c14 100644 (file)
@@ -145,9 +145,8 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
 
        ret = netlink_broadcast(sock, skb, 0, group+1, GFP_ATOMIC);
 
-       if (!ret) {
+       if (!ret)
                return len;
-       }
        if (ret != -ESRCH) {
                pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n",
                       group, type, len, ret);