]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: lustre: lustre: ldlm: ldlm_lib.c - removed unnecessary braces
authorAnil Belur <askb23@gmail.com>
Thu, 19 Jun 2014 16:01:47 +0000 (02:01 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:23:53 +0000 (17:23 -0700)
- this change fixes "WARNING: braces {} are not necessary for single
  statement blocks"

Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lib.c

index 8bb59155968f9e8991ba32075ecc1f3161a3d69d..5d69af5ad87c8816ed70a94194fb03f66ac9c9c2 100644 (file)
@@ -74,9 +74,8 @@ static int import_set_conn(struct obd_import *imp, struct obd_uuid *uuid,
 
        if (create) {
                OBD_ALLOC(imp_conn, sizeof(*imp_conn));
-               if (!imp_conn) {
+               if (!imp_conn)
                        GOTO(out_put, rc = -ENOMEM);
-               }
        }
 
        spin_lock(&imp->imp_lock);
@@ -662,9 +661,8 @@ void target_send_reply(struct ptlrpc_request *req, int rc, int fail_id)
        struct ptlrpc_reply_state *rs;
        struct obd_export        *exp;
 
-       if (req->rq_no_reply) {
+       if (req->rq_no_reply)
                return;
-       }
 
        svcpt = req->rq_rqbd->rqbd_svcpt;
        rs = req->rq_reply_state;