svn commit: r301396 - stable/10/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Sat Jun 4 17:18:37 UTC 2016
Author: arybchik
Date: Sat Jun 4 17:18:35 2016
New Revision: 301396
URL: https://svnweb.freebsd.org/changeset/base/301396
Log:
MFC r300844
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.
Modified:
stable/10/sys/dev/sfxge/common/ef10_nic.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/sfxge/common/ef10_nic.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_nic.c Sat Jun 4 17:17:30 2016 (r301395)
+++ stable/10/sys/dev/sfxge/common/ef10_nic.c Sat Jun 4 17:18:35 2016 (r301396)
@@ -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;
More information about the svn-src-stable-10
mailing list