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)
commit5621a0bcb4b4dffc87d74330a9a31b868572f763
treee2b3d24165d39a45f871c5a0167e055b342299ce
parentc337125b8834f9719dfda0e40b25eaa266f1b8cf
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