net: dsa: b53: clean up if() condition to be more readable
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 22 Feb 2022 10:15:57 +0000 (10:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Feb 2022 11:03:02 +0000 (11:03 +0000)
commit341b672c99b9e69d7e8695979cb8a93f6ae58500
treeb08d68fffef5f2e2ac45067fac9b50a82c886e23
parentb6553c71813f57b1bfa775af120169c549f7f090
net: dsa: b53: clean up if() condition to be more readable

I've stared at this if() statement for a while trying to work out if
it really does correspond with the comment above, and it does seem to.
However, let's make it more readable and phrase it in the same way as
the comment.

Also add a FIXME into the comment - we appear to deny Gigabit modes for
802.3z interface modes, but 802.3z interface modes only operate at
gigabit and above.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c