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)
commit4ee5a460a34fe0ddf9738aedea991b329e3da189
tree8148b839821f6579ef20a7d676d2f5cfcab91dbf
parente1d71498327165ef5b975ddf3dc209205c6173c6
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