New upstream version 17.11.5
[deb_dpdk.git] / drivers / net / sfc / base / efx_port.c
index 518c2a2..7584e5a 100644 (file)
@@ -61,7 +61,7 @@ efx_port_init(
        epp->ep_emop->emo_reconfigure(enp);
 
        /* Pick up current phy capababilities */
-       efx_port_poll(enp, NULL);
+       (void) efx_port_poll(enp, NULL);
 
        /*
         * Turn on the PHY if available, otherwise reset it, and
@@ -109,7 +109,6 @@ efx_port_poll(
        EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
 
        EFSYS_ASSERT(emop != NULL);
-       EFSYS_ASSERT(!epp->ep_mac_stats_pending);
 
        if (link_modep == NULL)
                link_modep = &ignore_link_mode;
@@ -145,7 +144,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;
        }