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
This commit is contained in:
Andrew Rybchenko 2016-05-27 11:45:42 +00:00
parent a92a213321
commit 5e951ea735
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -1677,6 +1677,7 @@ ef10_nic_register_test(
/* FIXME */
_NOTE(ARGUNUSED(enp))
_NOTE(CONSTANTCONDITION)
if (B_FALSE) {
rc = ENOTSUP;
goto fail1;

View File

@ -649,6 +649,7 @@ ef10_tx_qpace(
/* FIXME */
_NOTE(ARGUNUSED(etp, ns))
_NOTE(CONSTANTCONDITION)
if (B_FALSE) {
rc = ENOTSUP;
goto fail1;