firmware_loader: Remove unnecessary conversion to bool
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 18 Feb 2021 09:12:09 +0000 (17:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 13:51:50 +0000 (14:51 +0100)
Fix the following coccicheck warnings:

./tools/testing/selftests/firmware/fw_namespace.c:98:54-59: WARNING:
conversion to bool not needed here.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1613639529-41139-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/firmware/fw_namespace.c

index 5ebc1ae..0e393cb 100644 (file)
@@ -95,7 +95,7 @@ static bool test_fw_in_ns(const char *fw_name, const char *sys_path, bool block_
                }
                if (block_fw_in_parent_ns)
                        umount("/lib/firmware");
-               return WEXITSTATUS(status) == EXIT_SUCCESS ? true : false;
+               return WEXITSTATUS(status) == EXIT_SUCCESS;
        }
 
        if (unshare(CLONE_NEWNS) != 0) {