Date: Wed, 26 Nov 2008 13:44:11 +0000 (UTC) From: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185336 - head/sys/dev/patm Message-ID: <200811261344.mAQDiBOX057010@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ganbold (doc committer) Date: Wed Nov 26 13:44:11 2008 New Revision: 185336 URL: http://svn.freebsd.org/changeset/base/185336 Log: Remove unused variable. Found with: Coverity Prevent(tm) CID: 3695,3696 Approved by: harti Modified: head/sys/dev/patm/if_patm_intr.c Modified: head/sys/dev/patm/if_patm_intr.c ============================================================================== --- head/sys/dev/patm/if_patm_intr.c Wed Nov 26 13:41:15 2008 (r185335) +++ head/sys/dev/patm/if_patm_intr.c Wed Nov 26 13:44:11 2008 (r185336) @@ -266,7 +266,7 @@ patm_feed_sbufs(struct patm_softc *sc) { u_int feed; bus_addr_t p0, p1; - void *v0, *v1; + void *v0; uint32_t h0, h1; feed = patm_feed_cnt(sc, 0); @@ -274,7 +274,7 @@ patm_feed_sbufs(struct patm_softc *sc) while (feed > 0) { if ((v0 = mbp_alloc(sc->sbuf_pool, &p0, &h0)) == NULL) break; - if ((v1 = mbp_alloc(sc->sbuf_pool, &p1, &h1)) == NULL) { + if (mbp_alloc(sc->sbuf_pool, &p1, &h1) == NULL) { mbp_free(sc->sbuf_pool, v0); break; } @@ -294,7 +294,7 @@ patm_feed_vbufs(struct patm_softc *sc) { u_int feed; bus_addr_t p0, p1; - void *v0, *v1; + void *v0; uint32_t h0, h1; feed = patm_feed_cnt(sc, 2); @@ -302,7 +302,7 @@ patm_feed_vbufs(struct patm_softc *sc) while (feed > 0) { if ((v0 = mbp_alloc(sc->vbuf_pool, &p0, &h0)) == NULL) break; - if ((v1 = mbp_alloc(sc->vbuf_pool, &p1, &h1)) == NULL) { + if (mbp_alloc(sc->vbuf_pool, &p1, &h1) == NULL) { mbp_free(sc->vbuf_pool, v0); break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811261344.mAQDiBOX057010>