]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: improve rtl8169_init_ring
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Apr 2018 21:23:35 +0000 (23:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:11:58 +0000 (21:11 -0400)
commitfd4e38bee0cd524bd26a2a85ca96c574b767d9d2
tree349d683ae7f5917b8425114aa6b8b6d0a6f8621f
parent681797d2d7e79c52712f682aafd9a6004edc57a7
r8169: improve rtl8169_init_ring

This function doesn't use the net_device, therefore change the
parameter to type struct rtl8169_private * to simplify the code.
In addition we don't need the calculations in the memset
statements, we can use the size of the arrays directly.

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