cxl: Simplify bool conversion
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 29 Jan 2021 08:25:05 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Feb 2021 16:02:18 +0000 (17:02 +0100)
commit76ec1ec8fc7c4bda24af8c3a73c5f56fa8d6e460
tree3c862dd560570e54db55276e8145bd1f2cb6e6e4
parentf72896063396b0cb205cbf0fd76ec6ab3ca11c8a
cxl: Simplify bool conversion

Fix the following coccicheck warning:
./drivers/misc/cxl/sysfs.c:181:48-53: WARNING: conversion to bool not
needed here

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611908705-98507-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/sysfs.c