summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-03-16 18:54:48 +0100
committerMike Marshall <hubcap@omnibond.com>2016-03-17 19:33:47 +0100
commit5e06664f29c92c8e6b007cdec1f3abf197bc1961 (patch)
tree1f6cd58b8e1a8f6f440c405a2aab3d4b6180af34
parentOrangefs: adjust unwind on module init failure. (diff)
downloadlinux-5e06664f29c92c8e6b007cdec1f3abf197bc1961.tar.xz
linux-5e06664f29c92c8e6b007cdec1f3abf197bc1961.zip
orangefs: remove unused reference to xattr key length
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r--fs/orangefs/xattr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c
index 8e9ccf971486..75a7dde8cc5f 100644
--- a/fs/orangefs/xattr.c
+++ b/fs/orangefs/xattr.c
@@ -344,7 +344,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
__u64 token = ORANGEFS_ITERATE_START;
ssize_t ret = -ENOMEM;
ssize_t total = 0;
- ssize_t length = 0;
int count_keys = 0;
int key_size;
int i = 0;
@@ -389,10 +388,6 @@ try_again:
goto done;
}
- length = new_op->downcall.resp.listxattr.keylen;
- if (length == 0)
- goto done;
-
returned_count = new_op->downcall.resp.listxattr.returned_count;
if (returned_count < 0 ||
returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) {