lkml.org 
[lkml]   [2024]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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!

\
 
 \ /
  Last update: 2024-05-27 15:25    [W:0.039 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site