summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2020-12-10 14:11:56 +0300
committerVinod Koul <vkoul@kernel.org>2021-01-13 14:58:24 +0300
commitaaf316de3bba4b152a1212e5581a57938a57b4f4 (patch)
treee41c63fc6f6301e607d4f7a3b7c437a89b47d189 /drivers/phy
parent39961bd6b70e5a5d7c4b5483ad8e1db6b5765c60 (diff)
downloadlinux-aaf316de3bba4b152a1212e5581a57938a57b4f4.tar.xz
phy: cpcap-usb: remove unneeded conversion to bool
Fix the following warning: drivers/phy/motorola/phy-cpcap-usb.c:146:31-36: WARNING: conversion to bool not needed here. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Link: https://lore.kernel.org/r/1607598716-16108-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/motorola/phy-cpcap-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
index 4728e2bff662..6ee478bc5211 100644
--- a/drivers/phy/motorola/phy-cpcap-usb.c
+++ b/drivers/phy/motorola/phy-cpcap-usb.c
@@ -143,7 +143,7 @@ static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata)
error = iio_read_channel_processed(ddata->vbus, &value);
if (error >= 0)
- return value > 3900 ? true : false;
+ return value > 3900;
dev_err(ddata->dev, "error reading VBUS: %i\n", error);