Module Name:    src
Committed By:   christos
Date:           Wed Feb 17 20:02:41 UTC 2016

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

Log Message:
PR/50819: David Binderman: Delete dead code.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/if_et.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_et.c
diff -u src/sys/dev/pci/if_et.c:1.10 src/sys/dev/pci/if_et.c:1.11
--- src/sys/dev/pci/if_et.c:1.10	Tue Feb  9 03:32:11 2016
+++ src/sys/dev/pci/if_et.c	Wed Feb 17 15:02:41 2016
@@ -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 @@ et_newbuf(struct et_rxbuf_data *rbd, int
 	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 */

Reply via email to