From 1cee2719d36e1ca8cd646c9ce94679014c5a28a4 Mon Sep 17 00:00:00 2001 From: Kartik_Burmee Date: Tue, 14 Nov 2017 13:59:14 +0530 Subject: glusterd: dead_code coverity fix issue: Execution cannot reach this statement: "rsp.op_errno = gf_errno_to_...". function:__server_event_notify fix: removed the if statement and the corresponding actions. Also, the variable was not being used anywhere else, so removed its declaration as well Change-Id: I85259e276c482cc9c98b1a829426bcec7412ce3f BUG: 789278 Signed-off-by: Kartik_Burmee --- xlators/mgmt/glusterd/src/glusterd-handshake.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c index a649e9f61be..d4cd87676b0 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handshake.c +++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c @@ -1025,7 +1025,6 @@ int32_t __server_event_notify (rpcsvc_request_t *req) { int32_t ret = -1; - int32_t op_errno = 0; gf_event_notify_req args = {0,}; gf_event_notify_rsp rsp = {0,}; dict_t *dict = NULL; @@ -1074,8 +1073,6 @@ __server_event_notify (rpcsvc_request_t *req) fail: rsp.op_ret = ret; - if (op_errno) - rsp.op_errno = gf_errno_to_error (op_errno); if (need_rsp) glusterd_submit_reply (req, &rsp, NULL, 0, NULL, -- cgit