summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-06-04 17:16:35 +0000
committerarybchik <arybchik@FreeBSD.org>2016-06-04 17:16:35 +0000
commit340d12ccfa39d93f3992b1be9c3f5987245ddf04 (patch)
tree592095fa2dafc94daf0835653373cff295614888
parent2a120a210afa09fbc18792c203ae1d0db9aa0179 (diff)
downloadFreeBSD-src-340d12ccfa39d93f3992b1be9c3f5987245ddf04.zip
FreeBSD-src-340d12ccfa39d93f3992b1be9c3f5987245ddf04.tar.gz
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.
-rw-r--r--sys/dev/sfxge/common/ef10_mcdi.c1
-rw-r--r--sys/dev/sfxge/common/ef10_nic.c1
-rwxr-xr-xsys/dev/sfxge/common/ef10_tx.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/ef10_mcdi.c b/sys/dev/sfxge/common/ef10_mcdi.c
index 202da54..6df9cf7 100644
--- a/sys/dev/sfxge/common/ef10_mcdi.c
+++ b/sys/dev/sfxge/common/ef10_mcdi.c
@@ -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;
diff --git a/sys/dev/sfxge/common/ef10_nic.c b/sys/dev/sfxge/common/ef10_nic.c
index 1482d7c5..f825391c 100644
--- a/sys/dev/sfxge/common/ef10_nic.c
+++ b/sys/dev/sfxge/common/ef10_nic.c
@@ -1677,6 +1677,7 @@ ef10_nic_register_test(
/* FIXME */
_NOTE(ARGUNUSED(enp))
+ _NOTE(CONSTANTCONDITION)
if (B_FALSE) {
rc = ENOTSUP;
goto fail1;
diff --git a/sys/dev/sfxge/common/ef10_tx.c b/sys/dev/sfxge/common/ef10_tx.c
index da490e1..a4729a1 100755
--- a/sys/dev/sfxge/common/ef10_tx.c
+++ b/sys/dev/sfxge/common/ef10_tx.c
@@ -649,6 +649,7 @@ ef10_tx_qpace(
/* FIXME */
_NOTE(ARGUNUSED(etp, ns))
+ _NOTE(CONSTANTCONDITION)
if (B_FALSE) {
rc = ENOTSUP;
goto fail1;
OpenPOWER on IntegriCloud