Skip to content

Commit

Permalink
r8169: remove not needed parameter in rtl8169_set_magic_reg
Browse files Browse the repository at this point in the history
Remove a not needed parameter in rtl8169_set_magic_reg.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed May 1, 2020
1 parent 37ecb5b commit ef89128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ static void rtl_set_rx_tx_desc_registers(struct rtl8169_private *tp)
RTL_W32(tp, RxDescAddrLow, ((u64) tp->RxPhyAddr) & DMA_BIT_MASK(32));
}

static void rtl8169_set_magic_reg(struct rtl8169_private *tp, unsigned mac_version)
static void rtl8169_set_magic_reg(struct rtl8169_private *tp)
{
u32 val;

Expand Down Expand Up @@ -3811,7 +3811,7 @@ static void rtl_hw_start_8169(struct rtl8169_private *tp)

RTL_W16(tp, CPlusCmd, tp->cp_cmd);

rtl8169_set_magic_reg(tp, tp->mac_version);
rtl8169_set_magic_reg(tp);

/* disable interrupt coalescing */
RTL_W16(tp, IntrMitigate, 0x0000);
Expand Down

0 comments on commit ef89128

Please sign in to comment.