diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-16 13:54:48 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-17 14:33:47 -0400 |
commit | 5e06664f29c92c8e6b007cdec1f3abf197bc1961 (patch) | |
tree | 1f6cd58b8e1a8f6f440c405a2aab3d4b6180af34 | |
parent | 1a0ce16d713679be86a023f7bd0f9c54f2c07e8a (diff) |
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.c | 5 |
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) | |||
344 | __u64 token = ORANGEFS_ITERATE_START; | 344 | __u64 token = ORANGEFS_ITERATE_START; |
345 | ssize_t ret = -ENOMEM; | 345 | ssize_t ret = -ENOMEM; |
346 | ssize_t total = 0; | 346 | ssize_t total = 0; |
347 | ssize_t length = 0; | ||
348 | int count_keys = 0; | 347 | int count_keys = 0; |
349 | int key_size; | 348 | int key_size; |
350 | int i = 0; | 349 | int i = 0; |
@@ -389,10 +388,6 @@ try_again: | |||
389 | goto done; | 388 | goto done; |
390 | } | 389 | } |
391 | 390 | ||
392 | length = new_op->downcall.resp.listxattr.keylen; | ||
393 | if (length == 0) | ||
394 | goto done; | ||
395 | |||
396 | returned_count = new_op->downcall.resp.listxattr.returned_count; | 391 | returned_count = new_op->downcall.resp.listxattr.returned_count; |
397 | if (returned_count < 0 || | 392 | if (returned_count < 0 || |
398 | returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) { | 393 | returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) { |