Skip to content

Commit afd29f3

Browse files
vladimirolteankuba-moo
authored andcommitted
net: pcs: lynx: no need to read LPA in lynx_pcs_get_state_2500basex()
Nothing useful is done with the LPA variable in lynx_pcs_get_state_2500basex(), we can just remove the read. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20240513115345.2452799-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent d20e391 commit afd29f3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/net/pcs/pcs-lynx.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs,
6161
static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs,
6262
struct phylink_link_state *state)
6363
{
64-
int bmsr, lpa;
64+
int bmsr;
6565

6666
bmsr = mdiodev_read(pcs, MII_BMSR);
67-
lpa = mdiodev_read(pcs, MII_LPA);
68-
if (bmsr < 0 || lpa < 0) {
67+
if (bmsr < 0) {
6968
state->link = false;
7069
return;
7170
}

0 commit comments

Comments
 (0)