]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: reduce indentation when calling stmmac_xpcs_setup
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 11 Jun 2021 20:05:21 +0000 (23:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 20:43:55 +0000 (13:43 -0700)
commiteacddb5e4e1a524e0b9cfa0a0a0644924b8e9eb4
tree36fc2415e3580d69386e4dd9e37bf8cdcb5f9a98
parente6b90490708c788aaf2a6ea2545c1ca2d80831b7
net: stmmac: reduce indentation when calling stmmac_xpcs_setup

There is no reason to embed an if within an if, we can just logically
AND the two conditions.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c