mmc: omap_hsmmc: Simplify bool comparison and conversion
authorYang Li <abaci-bugfix@linux.alibaba.com>
Fri, 15 Jan 2021 09:51:21 +0000 (17:51 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:47 +0000 (11:54 +0100)
commiteab234fce3334fd876558b6027ef2830ea559ad7
tree8973e4cc2d950ac66049f53c75586222fc968628
parent6b1dc6229aecbcb45e8901576684a8c09e25ad7b
mmc: omap_hsmmc: Simplify bool comparison and conversion

Fix the following coccicheck warning:
./drivers/mmc/host/omap_hsmmc.c:297:6-25: WARNING: Comparison of 0/1 to
bool variable

According to the context, vqmmc_enabled is more suitable for bool type.

Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Signed-off-by: Yang Li <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1610704281-11036-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c