staging: erofs: code cleanup for option parsing of fault_injection
authorChengguang Xu <cgxu519@gmx.com>
Wed, 19 Sep 2018 14:53:44 +0000 (22:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:26:29 +0000 (12:26 +0200)
commit01e4ae4b687fad12fa00ebf0bc0723f1fbbeec30
treeb41ed05ad6c407c0aa6c463ad2ced6e50bf83fe4
parent6614f76530c102a3b55e2355645385ab124cdcb2
staging: erofs: code cleanup for option parsing of fault_injection

Define a dummpy function of erofs_build_fault_attr() when macro
CONFIG_EROFS_FAULT_INJECTION is disabled, so that we don't have to
check the macro in calling place. Based on above adjustment,
do proper code cleanup for option parsing of fault_injection.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/super.c