r8169: Dereference MMIO address immediately before use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Mar 2018 11:27:34 +0000 (13:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:15:17 +0000 (18:15 -0500)
commit1ef7286e7f36020e655ebeb82386911b617c5aee
treec5024edc029fc86b5ef886517caa49a08957c229
parentcc1122b00d624ef551b6ff92e57240cbffb7d62a
r8169: Dereference MMIO address immediately before use

There is no need to dereference struct rtl8169_private to get mmio_addr
in almost every function in the driver.

Replace it by using pointer to struct rtl8169_private directly.

No functional change intended.

Next step might be a conversion of RTL_Wxx() / RTL_Rxx() macros
to inline functions for sake of type checking.

Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c