summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-02-02 19:19:07 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-04-08 05:34:52 +0000
commit5ac39ab3cd4ba8c5c3a103912a13c443036bfe2e (patch)
tree61743b7ae7550bae0822c4fa6dd68eebd2402df8 /xlators
parent559bb9bec6f59278ac358b586916a1ff6caa53e1 (diff)
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 <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/9540 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-self-heald.c4
1 files changed, 0 insertions, 4 deletions
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;