Commit 474be12d authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

staging: gdm72xx: compress return logic into one line

Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle
@@
expression e, ret;
@@

-ret =
+return
	e;
-return ret;
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5a41b934
...@@ -151,6 +151,5 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) ...@@ -151,6 +151,5 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n", pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n",
group, type, len, ret); group, type, len, ret);
} }
ret = 0; return 0;
return ret;
} }
...@@ -357,7 +357,5 @@ int usb_emergency(struct usb_device *usbdev) ...@@ -357,7 +357,5 @@ int usb_emergency(struct usb_device *usbdev)
return ret; return ret;
dev_info(&usbdev->dev, "GCT Emergency: Filesystem download success.\n"); dev_info(&usbdev->dev, "GCT Emergency: Filesystem download success.\n");
ret = em_fw_reset(usbdev); return em_fw_reset(usbdev);
return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment