Date: Fri, 27 May 2016 11:47:11 +0000 (UTC) From: Andrew Rybchenko <arybchik@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300844 - head/sys/dev/sfxge/common Message-ID: <201605271147.u4RBlBSY045285@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arybchik Date: Fri May 27 11:47:11 2016 New Revision: 300844 URL: https://svnweb.freebsd.org/changeset/base/300844 Log: sfxge(4): remove set but not used variable Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Modified: head/sys/dev/sfxge/common/ef10_nic.c Modified: head/sys/dev/sfxge/common/ef10_nic.c ============================================================================== --- head/sys/dev/sfxge/common/ef10_nic.c Fri May 27 11:46:54 2016 (r300843) +++ head/sys/dev/sfxge/common/ef10_nic.c Fri May 27 11:47:11 2016 (r300844) @@ -795,7 +795,6 @@ ef10_nic_alloc_piobufs( { efx_piobuf_handle_t *handlep; unsigned int i; - efx_rc_t rc; EFSYS_ASSERT3U(max_piobuf_count, <=, EFX_ARRAY_SIZE(enp->en_arch.ef10.ena_piobuf_handle)); @@ -805,7 +804,7 @@ ef10_nic_alloc_piobufs( for (i = 0; i < max_piobuf_count; i++) { handlep = &enp->en_arch.ef10.ena_piobuf_handle[i]; - if ((rc = efx_mcdi_alloc_piobuf(enp, handlep)) != 0) + if (efx_mcdi_alloc_piobuf(enp, handlep) != 0) goto fail1; enp->en_arch.ef10.ena_pio_alloc_map[i] = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605271147.u4RBlBSY045285>