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: Alison Schofield <amsfield22@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5a41b93476
commit
474be12de6
|
@ -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",
|
||||
group, type, len, ret);
|
||||
}
|
||||
ret = 0;
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -357,7 +357,5 @@ int usb_emergency(struct usb_device *usbdev)
|
|||
return ret;
|
||||
dev_info(&usbdev->dev, "GCT Emergency: Filesystem download success.\n");
|
||||
|
||||
ret = em_fw_reset(usbdev);
|
||||
|
||||
return ret;
|
||||
return em_fw_reset(usbdev);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue