summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-handshake.c
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2018-10-08 21:35:04 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-10-09 02:25:51 +0000
commit3108fb24e72ab3f60ef0aa9cf3ffd8a3a33ce424 (patch)
tree0ad8f1b13f9c50768ff015b31ffef62ecff84590 /xlators/protocol/server/src/server-handshake.c
parentb5f75e337c19d4fed85d4dcf15cf47f02fea5f6a (diff)
rpc: coverity fixes
CID: [1] 1394646 Unchecked return value from library CID: [2] 1394633 Unused value CID: 1382443 Sleeping while holding a lock [This is intentional] [1] https://scan6.coverity.com/reports.htm#v40014/p10714/fileInstanceId=86159112&defectInstanceId=26360786&mergedDefectId=1394646 [2] https://scan6.coverity.com/reports.htm#v40014/p10714/fileInstanceId=86159365&defectInstanceId=26360919&mergedDefectId=1394633 Change-Id: I03086f7a9672c9f50a2bc44cdbce0006c887357b updates: bz#789278 Signed-off-by: Milind Changire <mchangir@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/server-handshake.c')
-rw-r--r--xlators/protocol/server/src/server-handshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c
index 9ba6f0b..698c3f8 100644
--- a/xlators/protocol/server/src/server-handshake.c
+++ b/xlators/protocol/server/src/server-handshake.c
@@ -916,6 +916,8 @@ fail:
ret = dict_set_str(reply, "ERROR",
"cleanup flag is set for xlator "
"before call first_lookup Try again later");
+ /* quisce coverity about UNUSED_VALUE ret */
+ (void)(ret);
} else {
op_ret = server_first_lookup(this, client, reply);
if (op_ret == -1)