erofs: correct indentation of an assigned structure inside a function
authorVladimir Zapolskiy <vladimir@tuxera.com>
Thu, 2 Jan 2020 12:02:32 +0000 (14:02 +0200)
committerGao Xiang <gaoxiang25@huawei.com>
Tue, 7 Jan 2020 02:08:27 +0000 (10:08 +0800)
Trivial change, the expected indentation ruled by the coding style
hasn't been met.

Signed-off-by: Vladimir Zapolskiy <vladimir@tuxera.com>
Link: https://lore.kernel.org/r/20200102120232.15074-1-vladimir@tuxera.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
fs/erofs/xattr.h

index 3585b84d2f201dfcd278b0ed6d8dc6bfe9c374fb..50966f1c676e484a632914e844a12088761a1deb 100644 (file)
@@ -46,18 +46,19 @@ extern const struct xattr_handler erofs_xattr_security_handler;
 
 static inline const struct xattr_handler *erofs_xattr_handler(unsigned int idx)
 {
-static const struct xattr_handler *xattr_handler_map[] = {
-       [EROFS_XATTR_INDEX_USER] = &erofs_xattr_user_handler,
+       static const struct xattr_handler *xattr_handler_map[] = {
+               [EROFS_XATTR_INDEX_USER] = &erofs_xattr_user_handler,
 #ifdef CONFIG_EROFS_FS_POSIX_ACL
-       [EROFS_XATTR_INDEX_POSIX_ACL_ACCESS] = &posix_acl_access_xattr_handler,
-       [EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT] =
-               &posix_acl_default_xattr_handler,
+               [EROFS_XATTR_INDEX_POSIX_ACL_ACCESS] =
+                       &posix_acl_access_xattr_handler,
+               [EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT] =
+                       &posix_acl_default_xattr_handler,
 #endif
-       [EROFS_XATTR_INDEX_TRUSTED] = &erofs_xattr_trusted_handler,
+               [EROFS_XATTR_INDEX_TRUSTED] = &erofs_xattr_trusted_handler,
 #ifdef CONFIG_EROFS_FS_SECURITY
-       [EROFS_XATTR_INDEX_SECURITY] = &erofs_xattr_security_handler,
+               [EROFS_XATTR_INDEX_SECURITY] = &erofs_xattr_security_handler,
 #endif
-};
+       };
 
        return idx && idx < ARRAY_SIZE(xattr_handler_map) ?
                xattr_handler_map[idx] : NULL;