Commit a24df1f6 authored by Gao Xiang's avatar Gao Xiang Committed by Greg Kroah-Hartman
Browse files

staging: erofs: use xattr_prefix to wrap up



Let's use xattr_prefix instead of open code.
No logic changes.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2829d07
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {