Date: Thu, 23 Feb 2017 18:15:05 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314156 - head/sys/dev/rt Message-ID: <201702231815.v1NIF5g4095483@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702231815.v1NIF5g4095483>