diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-02-18 17:12:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 14:51:50 +0100 |
commit | 2c137388d685e11cf621b56bf06c4f3a1a8ff7be (patch) | |
tree | 622b46a5e17eabd3234afda658981c74deba3a27 | |
parent | driver core: dd: remove deferred_devices variable (diff) | |
download | linux-dev-2c137388d685e11cf621b56bf06c4f3a1a8ff7be.tar.xz linux-dev-2c137388d685e11cf621b56bf06c4f3a1a8ff7be.zip |
firmware_loader: Remove unnecessary conversion to bool
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>
-rw-r--r-- | tools/testing/selftests/firmware/fw_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/firmware/fw_namespace.c b/tools/testing/selftests/firmware/fw_namespace.c index 5ebc1aec7923..0e393cb5f42d 100644 --- a/tools/testing/selftests/firmware/fw_namespace.c +++ b/tools/testing/selftests/firmware/fw_namespace.c @@ -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) { |