projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4385190
)
phy: cpcap-usb: Simplify bool conversion
author
Yang Li
<yang.lee@linux.alibaba.com>
Fri, 29 Jan 2021 07:38:35 +0000
(15:38 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Sat, 6 Feb 2021 10:08:22 +0000
(15:38 +0530)
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>
drivers/phy/motorola/phy-cpcap-usb.c
patch
|
blob
|
history
diff --git
a/drivers/phy/motorola/phy-cpcap-usb.c
b/drivers/phy/motorola/phy-cpcap-usb.c
index
442522b
..
c276f7c
100644
(file)
--- 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);