summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 36cee49696c..75895136155 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -696,7 +696,6 @@ static void
_handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum,
posix_xattr_filler_t *filler)
{
- int ret = -1;
ssize_t size = 0;
char *list = NULL;
int32_t list_offset = 0;
@@ -742,7 +741,7 @@ _handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum,
if (dict_get (filler->xattr, key))
goto next;
- ret = _posix_xattr_get_set_from_backend (filler, key);
+ (void) _posix_xattr_get_set_from_backend (filler, key);
next:
remaining_size -= strlen (key) + 1;
list_offset += strlen (key) + 1;
@@ -1928,11 +1927,8 @@ posix_fsyncer_process (xlator_t *this, call_stub_t *stub, gf_boolean_t do_fsync)
{
struct posix_fd *pfd = NULL;
int ret = -1;
- struct posix_private *priv = NULL;
int op_errno = 0;
- priv = this->private;
-
ret = posix_fd_ctx_get (stub->args.fd, this, &pfd, &op_errno);
if (ret < 0) {
gf_msg (this->name, GF_LOG_ERROR, op_errno,