summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gdm72xx
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2014-09-27 00:00:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-28 23:27:35 -0400
commit93f509a88107b2ee551ae63e710f22378815eb76 (patch)
treec8b16acffe677345d22db0a1bcac0c26edc744ba /drivers/staging/gdm72xx
parentd1fed0287238ea050163ae7c609306c0e5bfee41 (diff)
downloadtalos-op-linux-93f509a88107b2ee551ae63e710f22378815eb76.tar.gz
talos-op-linux-93f509a88107b2ee551ae63e710f22378815eb76.zip
drivers: staging: gdm72xx: Removed unnecessary else expression.
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r--drivers/staging/gdm72xx/netlink_k.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/gdm72xx/netlink_k.c b/drivers/staging/gdm72xx/netlink_k.c
index 9bf00e683f13..643eaab9664f 100644
--- a/drivers/staging/gdm72xx/netlink_k.c
+++ b/drivers/staging/gdm72xx/netlink_k.c
@@ -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;
}
OpenPOWER on IntegriCloud