sfxge(4): fix comparison always true warning

Loopback type used as bit index has efx_loopback_type_t type
which is enum. clang complains that it is always true when it
is compared with qword (64 bit) bits number boundary.

Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D18228
This commit is contained in:
Andrew Rybchenko 2018-11-29 06:44:09 +00:00
parent 17bcc05631
commit 2a67ba3018
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341197

View File

@ -149,7 +149,7 @@ efx_port_loopback_set(
EFSYS_ASSERT(link_mode < EFX_LINK_NMODES);
if (EFX_TEST_QWORD_BIT(encp->enc_loopback_types[link_mode],
loopback_type) == 0) {
(int)loopback_type) == 0) {
rc = ENOTSUP;
goto fail1;
}