commit | b1127e641e8986212620111ee5f78a24cbe8ae27 | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Tue Apr 17 23:23:35 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 18 21:11:58 2018 -0400 |
tree | 349d683ae7f5917b8425114aa6b8b6d0a6f8621f | |
parent | d3b404c29c97ecf56001dc94f94a5b8e5efcd2e3 [diff] |
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>