]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: lustre: lustre: lmv: Compress return logic into one line.
authorGustavo A. R. Silva <silvagustavosilva@gmail.com>
Thu, 5 Jan 2017 05:14:36 +0000 (21:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Jan 2017 17:42:15 +0000 (18:42 +0100)
commit6f611b82c91d6f7cabb2d4b9c79bd7e0ae41acea
tree8148b839821f6579ef20a7d676d2f5cfcab91dbf
parentde1cb5e4bec793ff0856ad175ebd584bac28dffd
Staging: lustre: lustre: lmv: Compress return logic into one line.

Simplify return logic to avoid unnecessary variable assignments.
These issues were detected using Coccinelle and the following semantic patch:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lmv/lmv_obd.c