Commit 5e06664f authored by Martin Brandenburg's avatar Martin Brandenburg Committed by Mike Marshall

orangefs: remove unused reference to xattr key length

Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 1a0ce16d
...@@ -344,7 +344,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size) ...@@ -344,7 +344,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
__u64 token = ORANGEFS_ITERATE_START; __u64 token = ORANGEFS_ITERATE_START;
ssize_t ret = -ENOMEM; ssize_t ret = -ENOMEM;
ssize_t total = 0; ssize_t total = 0;
ssize_t length = 0;
int count_keys = 0; int count_keys = 0;
int key_size; int key_size;
int i = 0; int i = 0;
...@@ -389,10 +388,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size) ...@@ -389,10 +388,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
goto done; goto done;
} }
length = new_op->downcall.resp.listxattr.keylen;
if (length == 0)
goto done;
returned_count = new_op->downcall.resp.listxattr.returned_count; returned_count = new_op->downcall.resp.listxattr.returned_count;
if (returned_count < 0 || if (returned_count < 0 ||
returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) { returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment