diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-01-29 11:35:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 17:38:50 +0300 |
commit | a24df1f62f7929d5d8f31fc64988581e160057d1 (patch) | |
tree | e1d035f67429271bc19d0a799e035b9442226ced /drivers/staging/erofs | |
parent | f2829d070f3da88a500f257013f387c5dc7617db (diff) | |
download | linux-a24df1f62f7929d5d8f31fc64988581e160057d1.tar.xz |
staging: erofs: use xattr_prefix to wrap up
Let's use xattr_prefix instead of open code.
No logic changes.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/erofs')
-rw-r--r-- | drivers/staging/erofs/xattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/erofs/xattr.c b/drivers/staging/erofs/xattr.c index 1c9498e38f0e..7de46690d972 100644 --- a/drivers/staging/erofs/xattr.c +++ b/drivers/staging/erofs/xattr.c @@ -520,8 +520,7 @@ static int xattr_entrylist(struct xattr_iter *_it, if (h == NULL || (h->list != NULL && !h->list(it->dentry))) return 1; - /* Note that at least one of 'prefix' and 'name' should be non-NULL */ - prefix = h->prefix != NULL ? h->prefix : h->name; + prefix = xattr_prefix(h); prefix_len = strlen(prefix); if (it->buffer == NULL) { |