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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d20e391 commit afd29f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)