]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b619c4c0cc68ad55712872d997b35742d4f85df
treeb08d68fffef5f2e2ac45067fac9b50a82c886e23
parentbf07175a8a135c50dbe68c7e0abe84db8d0fa32c
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