Skip to contentSkip to conversation

r8169: Remove unfounded interrupts

PATCH In review Corcodel Marian 2 participants 2 messages Aug 23, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8169: Remove unfounded interrupts

Remove unfounded interrupts which is not on RTL 8101 series.

drivers/net/ethernet/realtek/r8169.c +3 -3
index 5fb79b1..5693e65 100644
@@ -6614,15 +6614,15 @@ static void rtl_hw_start_8101(struct net_device *dev)
 
 	RTL_W8(Cfg9346, Cfg9346_Lock);
 
-	RTL_W16(IntrMitigate, 0x0000);
+	//RTL_W16(IntrMitigate, 0x0000);
 
 	//RTL_W8(ChipCmd, CmdTxEnb | CmdRxEnb);
 
 	rtl_set_rx_mode(dev);
 
-	RTL_R8(IntrMask);
+	//RTL_R8(IntrMask);
 
-	RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xf000);
+	//RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xf000);
 }
 
 static int rtl8169_change_mtu(struct net_device *dev, int new_mtu)
Signature · 1 line
2.1.4
#1 lore raw
Quoted 3 lines · On Sun, 23 Aug 2015 19:18:30 +0300 Corcodel Marian <[email protected]>…

Remove unfounded interrupts which is not on RTL 8101 series.

Kernel style standards precludes use of C++ style comments.

Also, it is is considered best practice to delete incorrect or dead code rather than littering the source with dead snippets.