Commit 1ef7286e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by David S. Miller
Browse files

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 <>
Signed-off-by: default avatarAndy Shevchenko <>
Signed-off-by: default avatarDavid S. Miller <>
parent cc1122b0
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment