svn commit: r301393 - stable/10/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Sat Jun 4 17:16:36 UTC 2016


Author: arybchik
Date: Sat Jun  4 17:16:35 2016
New Revision: 301393
URL: https://svnweb.freebsd.org/changeset/base/301393

Log:
  MFC r300841
  
  sfxge(4): add constant condition note to make lint happier
  
  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_mcdi.c
  stable/10/sys/dev/sfxge/common/ef10_nic.c
  stable/10/sys/dev/sfxge/common/ef10_tx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/ef10_mcdi.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_mcdi.c	Sat Jun  4 17:15:38 2016	(r301392)
+++ stable/10/sys/dev/sfxge/common/ef10_mcdi.c	Sat Jun  4 17:16:35 2016	(r301393)
@@ -213,6 +213,7 @@ ef10_mcdi_poll_reboot(
 		 * this can be handled by common code drivers (and reworked to
 		 * support Siena too).
 		 */
+		_NOTE(CONSTANTCONDITION)
 		if (B_FALSE) {
 			rc = EIO;
 			goto fail1;

Modified: stable/10/sys/dev/sfxge/common/ef10_nic.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_nic.c	Sat Jun  4 17:15:38 2016	(r301392)
+++ stable/10/sys/dev/sfxge/common/ef10_nic.c	Sat Jun  4 17:16:35 2016	(r301393)
@@ -1677,6 +1677,7 @@ ef10_nic_register_test(
 
 	/* FIXME */
 	_NOTE(ARGUNUSED(enp))
+	_NOTE(CONSTANTCONDITION)
 	if (B_FALSE) {
 		rc = ENOTSUP;
 		goto fail1;

Modified: stable/10/sys/dev/sfxge/common/ef10_tx.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_tx.c	Sat Jun  4 17:15:38 2016	(r301392)
+++ stable/10/sys/dev/sfxge/common/ef10_tx.c	Sat Jun  4 17:16:35 2016	(r301393)
@@ -649,6 +649,7 @@ ef10_tx_qpace(
 
 	/* FIXME */
 	_NOTE(ARGUNUSED(etp, ns))
+	_NOTE(CONSTANTCONDITION)
 	if (B_FALSE) {
 		rc = ENOTSUP;
 		goto fail1;


More information about the svn-src-all mailing list