ubifs: Code cleanup by removing ifdef macro surrounding
authorChengguang Xu <cgxu519@mykernel.net>
Tue, 26 May 2020 09:07:12 +0000 (17:07 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 20:51:59 +0000 (21:51 +0100)
commit2976c19c95a4749ba11db174ecad676ff16fd4c9
tree85afa5569a6610bc10bcb5a8733fc72808478cf8
parent8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09
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>
fs/ubifs/dir.c
fs/ubifs/file.c
fs/ubifs/super.c
fs/ubifs/ubifs.h