OSDN Git Service

Staging: lustre: lustre: osc: Remove variable that is not very useful.
authorHeena Sirwani <heenasirwani@gmail.com>
Tue, 7 Oct 2014 11:58:30 +0000 (17:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:10 +0000 (10:29 +0800)
commit41f8d410aee43a00b2e5e1c3b916049fad0f8643
treeefd7f649619dd6681a5efdb93eb8d4eadcf5ccae
parent114114a2a340e999277ce3fa833b4546f4e9b853
Staging: lustre: lustre: osc: Remove variable that is not very useful.

The following patch removes a variable that is not very useful using
coccinelle.
The semantic patch used was:
@@
identifier ret;
@@

-int ret = 0;
 ... when != ret
     when strict
-return ret;
+return 0;

Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_request.c