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

phy: cpcap-usb: Simplify bool conversion

Fix the following coccicheck warning:
./drivers/phy/motorola/phy-cpcap-usb.c:146:31-36: WARNING: conversion to
bool not needed here

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611905915-50394-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yang Li and committed by
Vinod Koul
d68f2cb0 43851904

+1 -1
+1 -1
drivers/phy/motorola/phy-cpcap-usb.c
··· 143 143 144 144 error = iio_read_channel_processed(ddata->vbus, &value); 145 145 if (error >= 0) 146 - return value > 3900 ? true : false; 146 + return value > 3900; 147 147 148 148 dev_err(ddata->dev, "error reading VBUS: %i\n", error); 149 149