Message ID | 20210825183538.13070-1-o.rempel@pengutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | ec92e524ee91c98e6ee06807c7d69d9e2fd141bc |
Headers | show |
Series | [net,v1,1/1] net: usb: asix: ax88772: fix boolconv.cocci warnings | expand |
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
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;