From: Gulsah Kose Date: Fri, 26 Sep 2014 21:00:14 +0000 (+0300) Subject: drivers: staging: gdm72xx: Removed unnecessary braces. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e98f76c8fe3247e2118b948799e0ea491f35b9e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers: staging: gdm72xx: Removed unnecessary braces. This patch fixes "braces {} are not necessary for single statement blocks" checkpatch.pl warning in netlink_k.c Signed-off-by: Gulsah Kose Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm72xx/netlink_k.c b/drivers/staging/gdm72xx/netlink_k.c index 643eaab9664f..9d78bfcdb2c3 100644 --- a/drivers/staging/gdm72xx/netlink_k.c +++ b/drivers/staging/gdm72xx/netlink_k.c @@ -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);