r8169: remove RTL_EVENT_NAPI constants
Heiner Kallweit
maintainerPATCH 1/1 r8169: remove RTL_EVENT_NAPI constants
These constants are used in one place only, so we can remove them and use the values directly.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/net/ethernet/realtek/r8169_main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +1 -5
@@ -1308,10 +1308,6 @@ static void rtl_irq_disable(struct rtl8169_private *tp) tp->irq_enabled =0 ; } -#define RTL_EVENT_NAPI_RX (RxOK | RxErr) -#define RTL_EVENT_NAPI_TX (TxOK | TxErr) -#define RTL_EVENT_NAPI (RTL_EVENT_NAPI_RX | RTL_EVENT_NAPI_TX) -static void rtl_irq_enable (struct rtl8169_private *tp) { tp->irq_enabled =1 ;
@@ -5113,7 +5109,7 @@ static const struct net_device_ops rtl_netdev_ops = {static void rtl_set_irq_mask (struct rtl8169_private *tp) { - tp->irq_mask =RTL_EVENT_NAPI | LinkChg; + tp->irq_mask = RxOK | RxErr | TxOK | TxErr | LinkChg;if (tp->mac_version <=RTL_GIGA_MAC_VER_06 ) tp->irq_mask |= SYSErr | RxOverflow | RxFIFOOver;
Signature · 1 line
2.25.1
From: Heiner Kallweit <[email protected]>
Date: Fri, 21 Feb 2020 19:27:00 +0100
Quoted 4 lines
These constants are used in one place only, so we can remove them and use the values directly.
Signed-off-by Heiner Kallweit <[email protected]>
Applied, thanks.