Skip to content

Commit

Permalink
orangefs: remove unused reference to xattr key length
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Martin Brandenburg authored and hubcapsc committed Mar 17, 2016
1 parent 1a0ce16 commit 5e06664
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/orangefs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -389,10 +388,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size)
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) {
Expand Down

0 comments on commit 5e06664

Please sign in to comment.