Commit b7cfd6d4 authored by Anil Belur's avatar Anil Belur Committed by Greg Kroah-Hartman

staging: lustre: lustre: ldlm: ldlm_lib.c - removed unnecessary braces

- this change fixes "WARNING: braces {} are not necessary for single
  statement blocks"
Signed-off-by: default avatarAnil Belur <askb23@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13d6b73e
...@@ -74,10 +74,9 @@ static int import_set_conn(struct obd_import *imp, struct obd_uuid *uuid, ...@@ -74,10 +74,9 @@ static int import_set_conn(struct obd_import *imp, struct obd_uuid *uuid,
if (create) { if (create) {
OBD_ALLOC(imp_conn, sizeof(*imp_conn)); OBD_ALLOC(imp_conn, sizeof(*imp_conn));
if (!imp_conn) { if (!imp_conn)
GOTO(out_put, rc = -ENOMEM); GOTO(out_put, rc = -ENOMEM);
} }
}
spin_lock(&imp->imp_lock); spin_lock(&imp->imp_lock);
list_for_each_entry(item, &imp->imp_conn_list, oic_item) { list_for_each_entry(item, &imp->imp_conn_list, oic_item) {
...@@ -662,9 +661,8 @@ void target_send_reply(struct ptlrpc_request *req, int rc, int fail_id) ...@@ -662,9 +661,8 @@ void target_send_reply(struct ptlrpc_request *req, int rc, int fail_id)
struct ptlrpc_reply_state *rs; struct ptlrpc_reply_state *rs;
struct obd_export *exp; struct obd_export *exp;
if (req->rq_no_reply) { if (req->rq_no_reply)
return; return;
}
svcpt = req->rq_rqbd->rqbd_svcpt; svcpt = req->rq_rqbd->rqbd_svcpt;
rs = req->rq_reply_state; rs = req->rq_reply_state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment