[PATCH net-next v2 10/11] net: stmmac: mdio: remove redundant clock rate tests
Andrew Lunn
andrew at lunn.ch
Thu Sep 4 12:06:11 PDT 2025
On Thu, Sep 04, 2025 at 01:11:46PM +0100, Russell King (Oracle) wrote:
> The pattern:
>
> ... if (v < A)
> ...
> else if (v >= A && v < B)
> ...
>
> can be simplified to:
>
> ... if (v < A)
> ...
> else if (v < B)
> ...
>
> which makes the string of ifelse more readable.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the linux-arm-kernel
mailing list