Skip to content

Commit

Permalink
r8169: Dereference MMIO address immediately before use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and David S. Miller committed Mar 4, 2018
1 parent cc1122b commit 1ef7286
Showing 1 changed file with 335 additions and 530 deletions.
Loading

0 comments on commit 1ef7286

Please sign in to comment.