Skip to contentSkip to conversation

r8169: C 101

PATCH In review [email protected] 1 participant 1 message Jan 5, 2005

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

PATCH 6/10 r8169: C 101

From: Francois Romieu <[email protected]>

Back to C101 and code which gives the expected result.

---

 25-akpm/drivers/net/r8169.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/r8169.c renamed from drivers/net/r8169.c~r8169-c-101 +1 -1
diff -puN drivers/net/r8169.c~r8169-c-101 drivers/net/r8169.c
@@ -1979,7 +1979,7 @@ static void rtl8169_pcierr_interrupt(str
 		PCI_STATUS_REC_TARGET_ABORT | PCI_STATUS_SIG_TARGET_ABORT));
 
 	/* The infamous DAC f*ckup only happens at boot time */
-	if ((tp->cp_cmd & PCIDAC) && (tp->dirty_rx == tp->cur_rx == 0)) {
+	if ((tp->cp_cmd & PCIDAC) && !tp->dirty_rx && !tp->cur_rx) {
 		printk(KERN_INFO PFX "%s: disabling PCI DAC.\n", dev->name);
 		tp->cp_cmd &= ~PCIDAC;
 		RTL_W16(CPlusCmd, tp->cp_cmd);

_