staging: erofs: code cleanup for erofs_kmalloc()
authorChengguang Xu <cgxu519@gmx.com>
Mon, 17 Sep 2018 15:34:21 +0000 (23:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 11:21:26 +0000 (13:21 +0200)
commitf8499d6edc0890eaa72e2d88a1415dbb8d4e82c8
treea562d6f430359ee880e45f18fd43d5553d1cb8b4
parent7dc074348eb85d48f7a1fa96879458f4becf68a7
staging: erofs: code cleanup for erofs_kmalloc()

Define a dummy function of time_to_inject()/erofs_show_injection_info(),
so that we don't have to check macro CONFIG_EROFS_FAULT_INJECTION in
calling place.

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