summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2015-05-20 17:51:29 +0530
committerNiels de Vos <ndevos@redhat.com>2015-06-07 13:28:45 -0700
commitf5095fdb7a311d3e019ec1e7a6b21844bb9fba61 (patch)
tree4b5e67de543c48e07c0b3662720721140389df88 /xlators
parentffe8b4d8149b50df53353bdb85fac1251a85ec2f (diff)
gfid-access: Remove dead increment (dead store)
This patch remove stores to variables that are no longer live. Change-Id: Ib6acd8c70cbb7ea875c01b7cfd6620ac1d641d36 BUG: 1223378 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Reviewed-on: http://review.gluster.org/10841 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kotresh HR <khiremat@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/gfid-access/src/gfid-access.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.c b/xlators/features/gfid-access/src/gfid-access.c
index b4de9c91b65..1c3ff849ebc 100644
--- a/xlators/features/gfid-access/src/gfid-access.c
+++ b/xlators/features/gfid-access/src/gfid-access.c
@@ -166,7 +166,6 @@ ga_newfile_parse_args (xlator_t *this, data_t *data)
goto err;
}
args->args.mkdir.umask = ntoh32 (*(uint32_t *)blob);
- blob += sizeof (uint32_t);
blob_len -= sizeof (uint32_t);
if (blob_len < 0) {
gf_log (this->name, GF_LOG_ERROR,
@@ -188,7 +187,6 @@ ga_newfile_parse_args (xlator_t *this, data_t *data)
goto err;
memcpy (args->args.symlink.linkpath, blob, (len + 1));
- blob += (len + 1);
blob_len -= (len + 1);
} else {
if (blob_len < sizeof (uint32_t)) {
@@ -218,7 +216,6 @@ ga_newfile_parse_args (xlator_t *this, data_t *data)
goto err;
}
args->args.mknod.umask = ntoh32 (*(uint32_t *)blob);
- blob += sizeof (uint32_t);
blob_len -= sizeof (uint32_t);
}