]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: Remove unnecessary return capture
authorRehas Sachdeva <aquannie@gmail.com>
Thu, 15 Sep 2016 19:41:08 +0000 (01:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 08:16:15 +0000 (10:16 +0200)
commitceea3a652c4d7c947978d13671b8533d6e85ca54
tree6c07c367f32247208a64f88387ed61f277f9e4cb
parent18e41f700d9d8cb0d14884b5233970b41ea03a87
staging: lustre: Remove unnecessary return capture

Instead of storing the return value of a function call into a variable and
then returning it, we can club the two into a single return statement. This
change was made using the following semantic patch by Coccinelle:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_request.c