]> asedeno.scripts.mit.edu Git - linux.git/commit
r8169: simplify rtl8169_alloc_rx_data
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Apr 2018 21:22:14 +0000 (23:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:11:58 +0000 (21:11 -0400)
commitd3b404c29c97ecf56001dc94f94a5b8e5efcd2e3
tree31db28d6888263a8d81db5f7333367fd0bc56693
parent9a899a35b0d6b28b31cb04e042a349ef2fe18557
r8169: simplify rtl8169_alloc_rx_data

dev->dev.parent has the same value as tp_to_dev(tp)
(set by SET_NETDEV_DEV() in rtl_init_one()) and we know it can't be NULL.
This allows us to simplify the code.

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