Module Name:    src
Committed By:   christos
Date:           Wed Feb 17 20:04:39 UTC 2016

Modified Files:
        src/sys/dev/pci: if_age.c

Log Message:
PR/50817: David Binderman: Delete dead code (copy from if_et.c)


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/pci/if_age.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_age.c
diff -u src/sys/dev/pci/if_age.c:1.46 src/sys/dev/pci/if_age.c:1.47
--- src/sys/dev/pci/if_age.c:1.46	Tue Feb  9 03:32:11 2016
+++ src/sys/dev/pci/if_age.c	Wed Feb 17 15:04:39 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_age.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $ */
+/*	$NetBSD: if_age.c,v 1.47 2016/02/17 20:04:39 christos Exp $ */
 /*	$OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $	*/
 
 /*-
@@ -31,7 +31,7 @@
 /* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.46 2016/02/09 08:32:11 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.47 2016/02/17 20:04:39 christos Exp $");
 
 #include "vlan.h"
 
@@ -2222,13 +2222,6 @@ age_newbuf(struct age_softc *sc, struct 
 	    sc->age_cdata.age_rx_sparemap, m, BUS_DMA_NOWAIT);
 
 	if (error != 0) {
-		if (!error) {
-			bus_dmamap_unload(sc->sc_dmat,
-			    sc->age_cdata.age_rx_sparemap);
-			error = EFBIG;
-			printf("%s: too many segments?!\n",
-			    device_xname(sc->sc_dev));
-		}
 		m_freem(m);
 
 		if (init)

Reply via email to