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>
pr_err("netlink_broadcast g=%d, t=%d, l=%d, r=%d\n",
group, type, len, ret);
}
- ret = 0;
- return ret;
+ return 0;
}
return ret;
dev_info(&usbdev->dev, "GCT Emergency: Filesystem download success.\n");
- ret = em_fw_reset(usbdev);
-
- return ret;
+ return em_fw_reset(usbdev);
}