From 2b9a4799ef6caaeeca438c019f4a1f6cf423324a Mon Sep 17 00:00:00 2001 From: arao Date: Thu, 12 Feb 2015 12:49:33 +0530 Subject: features/quota: Fixing Logically dead code CID: 1134007 The code never reaches the condition check on retlen in ret label, hence removing the dead code. Change-Id: Ia0108b69489bb78a2561ff8da6e00685f472ae82 BUG: 789278 Signed-off-by: arao Reviewed-on: http://review.gluster.org/9644 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quotad-aggregator.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c index 681fea4cb74..6f2f6e8a7b0 100644 --- a/xlators/features/quota/src/quotad-aggregator.c +++ b/xlators/features/quota/src/quotad-aggregator.c @@ -57,11 +57,6 @@ quotad_serialize_reply (rpcsvc_request_t *req, void *arg, struct iovec *outmsg, } outmsg->iov_len = retlen; ret: - if (retlen == -1) { - iobuf_unref (iob); - iob = NULL; - } - return iob; } -- cgit