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