[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zd4NmB/RLRXFDpjh@shell.armlinux.org.uk>
Date: Tue, 27 Feb 2024 16:28:08 +0000
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Robert Marko <robimarko@...il.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, andersson@...nel.org,
konrad.dybcio@...aro.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, netdev@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
ansuelsmth@...il.com
Subject: Re: [PATCH net-next 1/2] net: phy: qcom: qca808x: add helper for
checking for 1G only model
On Tue, Feb 27, 2024 at 05:19:28PM +0100, Robert Marko wrote:
> + if (QCA808X_PHY_CHIP_TYPE_1G & ret)
> + return true;
> + else
> + return false;
return !!(QCA808X_PHY_CHIP_TYPE_1G & ret);
is a shorter way to write that.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists