summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/lustre/mdc
diff options
context:
space:
mode:
authorAntonio Murdaca <antoniomurdaca@gmail.com>2015-06-08 21:48:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-08 13:15:38 -0700
commit71e8dd9a2f8dc9fc14fe9b20515709cc33f4a255 (patch)
tree167f2e54a8a259167d32dec93976b43c4d90abe9 /drivers/staging/lustre/lustre/mdc
parent9ee81443b99ae3a022ba145ed62e22a5173e33f6 (diff)
staging: lustre: cleanup not needed else clauses
cleanup checkpatch.pl warnings about not needed else clauses after a break or return Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/mdc')
-rw-r--r--drivers/staging/lustre/lustre/mdc/mdc_request.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c b/drivers/staging/lustre/lustre/mdc/mdc_request.c
index c9639413b105..c23511f7c142 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_request.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c
@@ -75,11 +75,11 @@ static int mdc_unpack_capa(struct obd_export *exp, struct ptlrpc_request *req,
if (IS_ERR(c)) {
CDEBUG(D_INFO, "alloc capa failed!\n");
return PTR_ERR(c);
- } else {
- c->c_capa = *capa;
- *oc = c;
- return 0;
}
+
+ c->c_capa = *capa;
+ *oc = c;
+ return 0;
}
static inline int mdc_queue_wait(struct ptlrpc_request *req)