Commit a55861c8 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Gao Xiang

erofs: correct indentation of an assigned structure inside a function

Trivial change, the expected indentation ruled by the coding style
hasn't been met.
Signed-off-by: default avatarVladimir Zapolskiy <vladimir@tuxera.com>
Link: https://lore.kernel.org/r/20200102120232.15074-1-vladimir@tuxera.comReviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
parent c79f46a2
...@@ -46,10 +46,11 @@ extern const struct xattr_handler erofs_xattr_security_handler; ...@@ -46,10 +46,11 @@ extern const struct xattr_handler erofs_xattr_security_handler;
static inline const struct xattr_handler *erofs_xattr_handler(unsigned int idx) static inline const struct xattr_handler *erofs_xattr_handler(unsigned int idx)
{ {
static const struct xattr_handler *xattr_handler_map[] = { static const struct xattr_handler *xattr_handler_map[] = {
[EROFS_XATTR_INDEX_USER] = &erofs_xattr_user_handler, [EROFS_XATTR_INDEX_USER] = &erofs_xattr_user_handler,
#ifdef CONFIG_EROFS_FS_POSIX_ACL #ifdef CONFIG_EROFS_FS_POSIX_ACL
[EROFS_XATTR_INDEX_POSIX_ACL_ACCESS] = &posix_acl_access_xattr_handler, [EROFS_XATTR_INDEX_POSIX_ACL_ACCESS] =
&posix_acl_access_xattr_handler,
[EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT] = [EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT] =
&posix_acl_default_xattr_handler, &posix_acl_default_xattr_handler,
#endif #endif
...@@ -57,7 +58,7 @@ static const struct xattr_handler *xattr_handler_map[] = { ...@@ -57,7 +58,7 @@ static const struct xattr_handler *xattr_handler_map[] = {
#ifdef CONFIG_EROFS_FS_SECURITY #ifdef CONFIG_EROFS_FS_SECURITY
[EROFS_XATTR_INDEX_SECURITY] = &erofs_xattr_security_handler, [EROFS_XATTR_INDEX_SECURITY] = &erofs_xattr_security_handler,
#endif #endif
}; };
return idx && idx < ARRAY_SIZE(xattr_handler_map) ? return idx && idx < ARRAY_SIZE(xattr_handler_map) ?
xattr_handler_map[idx] : NULL; xattr_handler_map[idx] : NULL;
......
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