Skip to content

Commit 82d3ff6

Browse files
hkallweitdavem330
authored andcommitted
r8169: remove calls to rtl_set_rx_mode
__dev_open() calls the ndo_set_rx_mode callback anyway, so we don't have to do it here too. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3559d81 commit 82d3ff6

File tree

1 file changed

+0
-6
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+0
-6
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5445,8 +5445,6 @@ static void rtl_hw_start_8169(struct rtl8169_private *tp)
54455445

54465446
RTL_W32(tp, RxMissed, 0);
54475447

5448-
rtl_set_rx_mode(tp->dev);
5449-
54505448
/* no early-rx interrupts */
54515449
RTL_W16(tp, MultiIntr, RTL_R16(tp, MultiIntr) & 0xf000);
54525450
}
@@ -6361,8 +6359,6 @@ static void rtl_hw_start_8168(struct rtl8169_private *tp)
63616359

63626360
RTL_W8(tp, ChipCmd, CmdTxEnb | CmdRxEnb);
63636361

6364-
rtl_set_rx_mode(tp->dev);
6365-
63666362
RTL_W16(tp, MultiIntr, RTL_R16(tp, MultiIntr) & 0xf000);
63676363
}
63686364

@@ -6554,8 +6550,6 @@ static void rtl_hw_start_8101(struct rtl8169_private *tp)
65546550

65556551
RTL_W8(tp, ChipCmd, CmdTxEnb | CmdRxEnb);
65566552

6557-
rtl_set_rx_mode(tp->dev);
6558-
65596553
RTL_R8(tp, IntrMask);
65606554

65616555
RTL_W16(tp, MultiIntr, RTL_R16(tp, MultiIntr) & 0xf000);

0 commit comments

Comments
 (0)