net/qede: fix incorrect link status update
[dpdk.git] / drivers / net / sfc / base / efx_port.c
index 261ac62..33a1a08 100644 (file)
@@ -120,7 +120,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;
        }