diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2020-05-26 11:07:12 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-12-13 21:51:59 +0100 |
commit | 2976c19c95a4749ba11db174ecad676ff16fd4c9 (patch) | |
tree | 85afa5569a6610bc10bcb5a8733fc72808478cf8 /fs/ubifs/super.c | |
parent | jffs2: Fix if/else empty body warnings (diff) | |
download | linux-2976c19c95a4749ba11db174ecad676ff16fd4c9.tar.xz linux-2976c19c95a4749ba11db174ecad676ff16fd4c9.zip |
ubifs: Code cleanup by removing ifdef macro surrounding
Define ubifs_listxattr and ubifs_xattr_handlers to NULL
when CONFIG_UBIFS_FS_XATTR is not enabled, then we can
remove many ugly ifdef macros in the code.
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index cb3acfb7dd1f..b238f0ca1608 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2207,9 +2207,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) if (c->max_inode_sz > MAX_LFS_FILESIZE) sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE; sb->s_op = &ubifs_super_operations; -#ifdef CONFIG_UBIFS_FS_XATTR sb->s_xattr = ubifs_xattr_handlers; -#endif fscrypt_set_ops(sb, &ubifs_crypt_operations); mutex_lock(&c->umount_mutex); |