Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci PR/50817: David Binderman: Delete dead code (cop...



details:   https://anonhg.NetBSD.org/src/rev/69888b55e323
branches:  trunk
changeset: 343635:69888b55e323
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 17 20:04:39 2016 +0000

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

diffstat:

 sys/dev/pci/if_age.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r 1fd24e7b6cb2 -r 69888b55e323 sys/dev/pci/if_age.c
--- a/sys/dev/pci/if_age.c      Wed Feb 17 20:02:41 2016 +0000
+++ b/sys/dev/pci/if_age.c      Wed Feb 17 20:04:39 2016 +0000
@@ -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 @@
            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)



Home | Main Index | Thread Index | Old Index