From 5ac39ab3cd4ba8c5c3a103912a13c443036bfe2e Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Mon, 2 Feb 2015 19:19:07 +0530 Subject: Cluster/afr : Coverity fix. CID:1194644 Childup[] value will not be equal to -1 when afr_xl_op() function gets called Change-Id: Iaf7a9d41a54f6b2d52d9ba5dadb638f328afe14b BUG: 789278 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/9540 Tested-by: Gluster Build System Reviewed-by: Humble Devassy Chirammal Reviewed-by: Krutika Dhananjay Reviewed-by: Kaleb KEITHLEY --- xlators/cluster/afr/src/afr-self-heald.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index 177e92497fe..0d8d5294f49 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -1074,10 +1074,6 @@ afr_xl_op (xlator_t *this, dict_t *input, dict_t *output) priv = this->private; shd = &priv->shd; - for (i = 0; i < priv->child_count; i++) - if (priv->child_up[i] == -1) - goto out; - ret = dict_get_int32 (input, "xl-op", (int32_t*)&op); if (ret) goto out; -- cgit