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



details:   https://anonhg.NetBSD.org/src/rev/1fd24e7b6cb2
branches:  trunk
changeset: 343634:1fd24e7b6cb2
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 17 20:02:41 2016 +0000

description:
PR/50819: David Binderman: Delete dead code.

diffstat:

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

diffs (30 lines):

diff -r b62006eed363 -r 1fd24e7b6cb2 sys/dev/pci/if_et.c
--- a/sys/dev/pci/if_et.c       Wed Feb 17 20:00:15 2016 +0000
+++ b/sys/dev/pci/if_et.c       Wed Feb 17 20:02:41 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_et.c,v 1.10 2016/02/09 08:32:11 ozaki-r Exp $       */
+/*     $NetBSD: if_et.c,v 1.11 2016/02/17 20:02:41 christos Exp $      */
 /*     $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $  */
 /*
  * Copyright (c) 2007 The DragonFly Project.  All rights reserved.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.10 2016/02/09 08:32:11 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.11 2016/02/17 20:02:41 christos Exp $");
 
 #include "opt_inet.h"
 #include "vlan.h"
@@ -2053,11 +2053,6 @@
        error = bus_dmamap_load_mbuf(sc->sc_dmat, sc->sc_mbuf_tmp_dmap, m,
                                     init ? BUS_DMA_WAITOK : BUS_DMA_NOWAIT);
        if (error) {
-               if (!error) {
-                       bus_dmamap_unload(sc->sc_dmat, sc->sc_mbuf_tmp_dmap);
-                       error = EFBIG;
-                       aprint_error_dev(sc->sc_dev, "too many segments?!\n");
-               }
                m_freem(m);
 
                /* XXX for debug */



Home | Main Index | Thread Index | Old Index