svn commit: r314156 - head/sys/dev/rt

Pedro F. Giffuni pfg at FreeBSD.org
Thu Feb 23 18:15:06 UTC 2017


Author: pfg
Date: Thu Feb 23 18:15:04 2017
New Revision: 314156
URL: https://svnweb.freebsd.org/changeset/base/314156

Log:
  rt_attach(): double assignment.
  
  Found with:	coccinelle (da.cocci)

Modified:
  head/sys/dev/rt/if_rt.c

Modified: head/sys/dev/rt/if_rt.c
==============================================================================
--- head/sys/dev/rt/if_rt.c	Thu Feb 23 18:14:36 2017	(r314155)
+++ head/sys/dev/rt/if_rt.c	Thu Feb 23 18:15:04 2017	(r314156)
@@ -438,7 +438,6 @@ rt_attach(device_t dev)
 		sc->fe_int_status=GE_PORT_BASE+FE_INT_STATUS;
 		sc->fe_int_enable=GE_PORT_BASE+FE_INT_ENABLE;
 		sc->pdma_glo_cfg=PDMA_BASE+PDMA_GLO_CFG;
-		sc->pdma_glo_cfg=PDMA_BASE+PDMA_GLO_CFG;
 		sc->pdma_rst_idx=PDMA_BASE+PDMA_RST_IDX;
 		for (i = 0; i < RT_SOFTC_TX_RING_COUNT; i++) {
 		  sc->tx_base_ptr[i]=PDMA_BASE+TX_BASE_PTR(i);


More information about the svn-src-all mailing list