Module Name:    src
Committed By:   christos
Date:           Wed Feb 17 20:05:45 UTC 2016

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/if_alc.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_alc.c
diff -u src/sys/dev/pci/if_alc.c:1.19 src/sys/dev/pci/if_alc.c:1.20
--- src/sys/dev/pci/if_alc.c:1.19	Tue Feb  9 03:32:11 2016
+++ src/sys/dev/pci/if_alc.c	Wed Feb 17 15:05:45 2016
@@ -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 <yong...@freebsd.org>
@@ -2389,13 +2389,6 @@ alc_newbuf(struct alc_softc *sc, struct 
 	    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)

Reply via email to