Commit d68f2cb0 authored by Yang Li's avatar Yang Li Committed by Vinod Koul

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611905915-50394-1-git-send-email-yang.lee@linux.alibaba.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 43851904
...@@ -143,7 +143,7 @@ static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata) ...@@ -143,7 +143,7 @@ static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata)
error = iio_read_channel_processed(ddata->vbus, &value); error = iio_read_channel_processed(ddata->vbus, &value);
if (error >= 0) if (error >= 0)
return value > 3900 ? true : false; return value > 3900;
dev_err(ddata->dev, "error reading VBUS: %i\n", error); dev_err(ddata->dev, "error reading VBUS: %i\n", error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment