]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: fix incorrect test in mt753x_phylink_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 7 Mar 2022 12:13:30 +0000 (12:13 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Mar 2022 11:12:25 +0000 (12:12 +0100)
commitb523b1b24e87fc15be80e07072dc77885d2a7bca
treeca7d700f18226107c09165f497bc5d7358d1e6ce
parent405c5e093b21ff9ed53ba6e5e14773365df685c3
net: dsa: mt7530: fix incorrect test in mt753x_phylink_validate()

Discussing one of the tests in mt753x_phylink_validate() with Landen
Chao confirms that the "||" should be "&&". Fix this.

Fixes: 311e10ceeec6 ("net: dsa: mt7530: Add the support of MT7531 switch")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1nRCF0-00CiXD-7q@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mt7530.c