summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2017-09-25 15:53:24 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-09-26 13:07:18 +0000
commit467f1f3c3037efac0497d50510247e62605c3f3a (patch)
treeb3484a4c114434bd32620d289419a0a487a4838d
parentb269089a33bd1348d34c861817c3f673206b6a18 (diff)
Posix: Unused value
In line number 5179 we are storing -1 into op_ret variable. Before we use the value we are overwriting the same variable in line number 5339. So we are removing the value assigning statement. Change-Id: I8c6dae9f6b0f9f1e3c09d0744d451b9296d12db8 BUG: 789278 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
-rw-r--r--xlators/storage/posix/src/posix.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index b1ab006219d..d487016d500 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -5176,7 +5176,6 @@ posix_fgetxattr (call_frame_t *frame, xlator_t *this,
size = sys_fgetxattr (_fd, key, NULL, 0);
}
if (size == -1) {
- op_ret = -1;
op_errno = errno;
if (errno == ENODATA || errno == ENOATTR) {
gf_msg_debug (this->name, 0, "fgetxattr"