]> git.baikalelectronics.ru Git - kernel.git/commit
edd: simplify the check of 'attr->test' in edd_populate_dir()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 11 May 2022 06:46:22 +0000 (14:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:57:04 +0000 (18:57 +0200)
commitd7e99e9ee07d1303e605edb6cbbeb8f067539000
treee2b3d24165d39a45f871c5a0167e055b342299ce
parent27374d681a59992511730987553c9dbba83ebd27
edd: simplify the check of 'attr->test' in edd_populate_dir()

attr->test check is not needed when !attr->test is false.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220511064622.3399164-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/edd.c