svn commit: r342332 - stable/12/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Fri Dec 21 16:20:14 UTC 2018
Author: arybchik
Date: Fri Dec 21 16:20:13 2018
New Revision: 342332
URL: https://svnweb.freebsd.org/changeset/base/342332
Log:
MFC r341197
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.
Differential Revision: https://reviews.freebsd.org/D18228
Modified:
stable/12/sys/dev/sfxge/common/efx_port.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_port.c Fri Dec 21 16:13:48 2018 (r342331)
+++ stable/12/sys/dev/sfxge/common/efx_port.c Fri Dec 21 16:20:13 2018 (r342332)
@@ -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;
}
More information about the svn-src-all
mailing list