From 49afb70f78027f63f4b4a66967e104b109f2f3b9 Mon Sep 17 00:00:00 2001 From: Kartik_Burmee Date: Tue, 14 Nov 2017 14:24:21 +0530 Subject: cluster: dead_code coverity fix function: stripe_entry_self_heal issue: Execution cannot reach this statement: "dict_unref(xdata);" fix: removed the 'if' condition and the corresponding actions because if the execution reaches this statement, then the value of xdata will always be NULL Change-Id: Iebc825339e2e1236b92bed39d81a1a9aba10164e BUG: 789278 Signed-off-by: Kartik_Burmee --- xlators/cluster/stripe/src/stripe.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 4a83707b4c4..0a3f716dd19 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -156,8 +156,6 @@ stripe_entry_self_heal (call_frame_t *frame, xlator_t *this, out: if (rframe) STRIPE_STACK_DESTROY (rframe); - if (xdata) - dict_unref (xdata); return 0; } -- cgit