Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2015 16:18:59 +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: r291396 - head/sys/dev/sfxge/common
Message-ID:  <201511271618.tARGIxSk084769@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Fri Nov 27 16:18:59 2015
New Revision: 291396
URL: https://svnweb.freebsd.org/changeset/base/291396

Log:
  sfxge: fix prefast warning in falconsiena_tx_qcreate
  
  Keep prefast happy by returning the initial queue index
  from falconsiena_tx_qcreate(). No change in behaviour, as
  etxo_qcreate already zeros *addedp before the call.
  
  Submitted by:   Andy Moreton <amoreton at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      2 days

Modified:
  head/sys/dev/sfxge/common/efx_tx.c

Modified: head/sys/dev/sfxge/common/efx_tx.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_tx.c	Fri Nov 27 16:16:45 2015	(r291395)
+++ head/sys/dev/sfxge/common/efx_tx.c	Fri Nov 27 16:18:59 2015	(r291396)
@@ -909,6 +909,8 @@ falconsiena_tx_qcreate(
 	}
 
 	/* Set up the new descriptor queue */
+	*addedp = 0;
+
 	EFX_POPULATE_OWORD_6(oword,
 	    FRF_AZ_TX_DESCQ_BUF_BASE_ID, id,
 	    FRF_AZ_TX_DESCQ_EVQ_ID, eep->ee_index,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511271618.tARGIxSk084769>