summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2014-09-23 19:22:41 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-23 08:18:59 -0700
commit5ce91a9e854aba900a5bcddcd1c2297d7ff5cd40 (patch)
tree47b23f1ed53e27df9967f6883bcdbb33f810f586 /drivers/staging/lustre
parent26c4ea46a55c9056fa20e3c91b1989f3cd9473d7 (diff)
downloadtalos-op-linux-5ce91a9e854aba900a5bcddcd1c2297d7ff5cd40.tar.gz
talos-op-linux-5ce91a9e854aba900a5bcddcd1c2297d7ff5cd40.zip
Staging: lustre: Return statement is moved left after removing else
This patch fixes following checkpatch.pl warning using coccinelle: WARNING: else is not generally useful after a break or return Semantic patch used for this is as follows: @rule1@ expression e1; @@ if (e1) { ... return ...; } - else{ ... - } @rule2@ expression e2; statement s1; @@ if(e2) { ... return ...; } - else s1 Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/niobuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/ptlrpc/niobuf.c b/drivers/staging/lustre/lustre/ptlrpc/niobuf.c
index 0067e0612ba6..c1e8aa4d5ec4 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/niobuf.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/niobuf.c
@@ -442,8 +442,7 @@ int ptlrpc_reply(struct ptlrpc_request *req)
{
if (req->rq_no_reply)
return 0;
- else
- return ptlrpc_send_reply(req, 0);
+ return ptlrpc_send_reply(req, 0);
}
EXPORT_SYMBOL(ptlrpc_reply);
OpenPOWER on IntegriCloud