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/50818: David Binderman: Delete dead code (cop...



details:   https://anonhg.NetBSD.org/src/rev/136155879275
branches:  trunk
changeset: 343636:136155879275
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 17 20:05:45 2016 +0000

description:
PR/50818: David Binderman: Delete dead code (copied from if_et.c)

diffstat:

 sys/dev/pci/if_alc.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (23 lines):

diff -r 69888b55e323 -r 136155879275 sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c      Wed Feb 17 20:04:39 2016 +0000
+++ b/sys/dev/pci/if_alc.c      Wed Feb 17 20:05:45 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_alc.c,v 1.19 2016/02/09 08:32:11 ozaki-r Exp $      */
+/*     $NetBSD: if_alc.c,v 1.20 2016/02/17 20:05:45 christos Exp $     */
 /*     $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $        */
 /*-
  * Copyright (c) 2009, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -2389,13 +2389,6 @@
            sc->alc_cdata.alc_rx_sparemap, m, BUS_DMA_NOWAIT);
 
        if (error != 0) {
-               if (!error) {
-                       bus_dmamap_unload(sc->sc_dmat,
-                           sc->alc_cdata.alc_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