mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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
2 changed files with 2 additions and 5 deletions
|
|
@ -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 a new issue