mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] phy: cpcap-usb: remove unneeded conversion to bool
@ 2020-12-10 11:11 Tian Tao
  2021-01-13 11:48 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2020-12-10 11:11 UTC (permalink / raw)
  To: kishon, vkoul, tony, pavel, christophe.jaillet; +Cc: linux-kernel

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>
---
 drivers/phy/motorola/phy-cpcap-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
index 442522b..c276f7c 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);
 
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] phy: cpcap-usb: remove unneeded conversion to bool
  2020-12-10 11:11 [PATCH] phy: cpcap-usb: remove unneeded conversion to bool Tian Tao
@ 2021-01-13 11:48 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2021-01-13 11:48 UTC (permalink / raw)
  To: Tian Tao; +Cc: kishon, tony, pavel, christophe.jaillet, linux-kernel

On 10-12-20, 19:11, Tian Tao wrote:
> Fix the following warning:
> drivers/phy/motorola/phy-cpcap-usb.c:146:31-36: WARNING: conversion to
> bool not needed here.

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-13 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 11:11 [PATCH] phy: cpcap-usb: remove unneeded conversion to bool Tian Tao
2021-01-13 11:48 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®