summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-11-03 22:32:28 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-11-03 22:32:28 +0000
commit65f12a765d3934f69e6ea8202eb8c8a8e1b4605b (patch)
tree70e382aa5c2c230837439ce8e4f5e0ad37870c63 /sys
parent29ef915a01e80eb271946c9c54dc5f51aac910a9 (diff)
vr_intr(): remove duplicate check for VR_ISR_RX_NOBUF and the "packet lost"
printf which will never be reached.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_vr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index f2fb7c8d77a..eb9d4ab7c5b 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.65 2006/09/22 03:18:57 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.66 2006/11/03 22:32:27 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1197,7 +1197,7 @@ vr_intr(void *arg)
}
if ((status & VR_ISR_RX_ERR) || (status & VR_ISR_RX_NOBUF) ||
- (status & VR_ISR_RX_NOBUF) || (status & VR_ISR_RX_OFLOW)) {
+ (status & VR_ISR_RX_OFLOW)) {
#ifdef VR_DEBUG
printf("%s: receive error (%04x)",
sc->sc_dev.dv_xname, status);
@@ -1205,8 +1205,6 @@ vr_intr(void *arg)
printf(" no buffers");
if (status & VR_ISR_RX_OFLOW)
printf(" overflow");
- if (status & VR_ISR_RX_DROPPED)
- printf(" packet lost");
printf("\n");
#endif
vr_rxeoc(sc);
@@ -1238,9 +1236,8 @@ vr_intr(void *arg)
/* Re-enable interrupts. */
CSR_WRITE_2(sc, VR_IMR, VR_INTRS);
- if (!IFQ_IS_EMPTY(&ifp->if_snd)) {
+ if (!IFQ_IS_EMPTY(&ifp->if_snd))
vr_start(ifp);
- }
return (claimed);
}