Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 11:45:42 +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: r300841 - head/sys/dev/sfxge/common
Message-ID:  <201605271145.u4RBjg31045072@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Fri May 27 11:45:42 2016
New Revision: 300841
URL: https://svnweb.freebsd.org/changeset/base/300841

Log:
  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.
  MFC after:      1 week

Modified:
  head/sys/dev/sfxge/common/ef10_mcdi.c
  head/sys/dev/sfxge/common/ef10_nic.c
  head/sys/dev/sfxge/common/ef10_tx.c

Modified: head/sys/dev/sfxge/common/ef10_mcdi.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_mcdi.c	Fri May 27 11:44:40 2016	(r300840)
+++ head/sys/dev/sfxge/common/ef10_mcdi.c	Fri May 27 11:45:42 2016	(r300841)
@@ -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: head/sys/dev/sfxge/common/ef10_nic.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_nic.c	Fri May 27 11:44:40 2016	(r300840)
+++ head/sys/dev/sfxge/common/ef10_nic.c	Fri May 27 11:45:42 2016	(r300841)
@@ -1677,6 +1677,7 @@ ef10_nic_register_test(
 
 	/* FIXME */
 	_NOTE(ARGUNUSED(enp))
+	_NOTE(CONSTANTCONDITION)
 	if (B_FALSE) {
 		rc = ENOTSUP;
 		goto fail1;

Modified: head/sys/dev/sfxge/common/ef10_tx.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_tx.c	Fri May 27 11:44:40 2016	(r300840)
+++ head/sys/dev/sfxge/common/ef10_tx.c	Fri May 27 11:45:42 2016	(r300841)
@@ -649,6 +649,7 @@ ef10_tx_qpace(
 
 	/* FIXME */
 	_NOTE(ARGUNUSED(etp, ns))
+	_NOTE(CONSTANTCONDITION)
 	if (B_FALSE) {
 		rc = ENOTSUP;
 		goto fail1;



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