* [PATCH net v1 1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings
@ 2021-08-25 18:35 Oleksij Rempel
2021-08-26 0:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2021-08-25 18:35 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski, Andrew Lunn, Heiner Kallweit,
Russell King
Cc: kernel test robot, Oleksij Rempel, kernel, linux-kernel,
linux-usb, netdev
From: kernel test robot <lkp@intel.com>
drivers/net/usb/asix_devices.c:757:60-65: WARNING: conversion to bool not needed here
Remove unneeded conversion to bool
Semantic patch information:
Relational and logical operators evaluate to bool,
explicit conversion is overly verbose and unneeded.
Generated by: scripts/coccinelle/misc/boolconv.cocci
Fixes: 7a141e64cf14 ("net: usb: asix: ax88772: move embedded PHY detection as early as possible")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
drivers/net/usb/asix_devices.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c
index f6f3955a3a0f..dc87e8caf954 100644
--- a/drivers/net/usb/asix_devices.c
+++ b/drivers/net/usb/asix_devices.c
@@ -754,7 +754,7 @@ static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf)
return ret;
priv->phy_addr = ret;
- priv->embd_phy = ((priv->phy_addr & 0x1f) == 0x10 ? true : false);
+ priv->embd_phy = ((priv->phy_addr & 0x1f) == 0x10);
asix_read_cmd(dev, AX_CMD_STATMNGSTS_REG, 0, 0, 1, &chipcode, 0);
chipcode &= AX_CHIPCODE_MASK;
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net v1 1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings
2021-08-25 18:35 [PATCH net v1 1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings Oleksij Rempel
@ 2021-08-26 0:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-08-26 0:50 UTC (permalink / raw)
To: Oleksij Rempel
Cc: davem, kuba, andrew, hkallweit1, linux, lkp, kernel,
linux-kernel, linux-usb, netdev
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Wed, 25 Aug 2021 20:35:38 +0200 you wrote:
> From: kernel test robot <lkp@intel.com>
>
> drivers/net/usb/asix_devices.c:757:60-65: WARNING: conversion to bool not needed here
>
> Remove unneeded conversion to bool
>
> Semantic patch information:
> Relational and logical operators evaluate to bool,
> explicit conversion is overly verbose and unneeded.
>
> [...]
Here is the summary with links:
- [net,v1,1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings
https://git.kernel.org/netdev/net/c/ec92e524ee91
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-26 0:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 18:35 [PATCH net v1 1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings Oleksij Rempel
2021-08-26 0:50 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.