efi: Remove redundant null pointer checks in efi_debugfs_init()
authorLi Zetao <lizetao1@huawei.com>
Tue, 3 Sep 2024 14:41:15 +0000 (22:41 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 13 Sep 2024 14:25:43 +0000 (16:25 +0200)
commit04736f7d1945722117def1462fd3602c72c02272
treeb8bdfd0351ee107ac9d229ab8536ac861a3ec8db
parent77d48d39e99170b528e4f2e9fc5d1d64cdedd386
efi: Remove redundant null pointer checks in efi_debugfs_init()

Since the debugfs_create_dir() never returns a null pointer, checking
the return value for a null pointer is redundant, and using IS_ERR is
safe enough.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c