summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/dir.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@mykernel.net>2020-05-26 11:07:12 +0200
committerRichard Weinberger <richard@nod.at>2020-12-13 21:51:59 +0100
commit2976c19c95a4749ba11db174ecad676ff16fd4c9 (patch)
tree85afa5569a6610bc10bcb5a8733fc72808478cf8 /fs/ubifs/dir.c
parentjffs2: Fix if/else empty body warnings (diff)
downloadlinux-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/dir.c')
-rw-r--r--fs/ubifs/dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 301810e5bf92..3c432f054a50 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -1630,9 +1630,7 @@ const struct inode_operations ubifs_dir_inode_operations = {
.rename = ubifs_rename,
.setattr = ubifs_setattr,
.getattr = ubifs_getattr,
-#ifdef CONFIG_UBIFS_FS_XATTR
.listxattr = ubifs_listxattr,
-#endif
.update_time = ubifs_update_time,
.tmpfile = ubifs_tmpfile,
};