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,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"