Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiapeng Chong and committed by
Greg Kroah-Hartman
2c137388 2942df67

+1 -1
+1 -1
tools/testing/selftests/firmware/fw_namespace.c
··· 95 95 } 96 96 if (block_fw_in_parent_ns) 97 97 umount("/lib/firmware"); 98 - return WEXITSTATUS(status) == EXIT_SUCCESS ? true : false; 98 + return WEXITSTATUS(status) == EXIT_SUCCESS; 99 99 } 100 100 101 101 if (unshare(CLONE_NEWNS) != 0) {