r8169: improve rtl8169_get_mac_version
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 15 Feb 2020 13:52:05 +0000 (14:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:36:06 +0000 (19:36 -0800)
commitf1f9ca2875692e3c07ae01663d6adaf4a6029bc0
treed7896b28f61543de24a18e7e6a5d6b0bd3403d09
parent711463f8342769c4cad7c3b54a6cfc2b006c1e42
r8169: improve rtl8169_get_mac_version

Currently code snippet (RTL_R32(tp, TxConfig) >> 20) & 0xfcf is used
in few places to extract the chip XID. Change the code to do the XID
extraction only once.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c