]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/octeontx2/otx2_ethdev_ops.c
net/bnxt: refactor async event handling
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev_ops.c
index 6f0cdc585422a4761726d94336313ed0c31a56ad..5a4501208e9e33feb79c681246a30c63ea344c24 100644 (file)
@@ -453,7 +453,7 @@ otx2_nix_fw_version_get(struct rte_eth_dev *eth_dev, char *fw_version,
        rc = strlcpy(fw_version, (char *)dev->mkex_pfl_name, rc);
 
        rc += 1; /* Add the size of '\0' */
        rc = strlcpy(fw_version, (char *)dev->mkex_pfl_name, rc);
 
        rc += 1; /* Add the size of '\0' */
-       if (fw_size < (uint32_t)rc)
+       if (fw_size < (size_t)rc)
                return rc;
 
        return 0;
                return rc;
 
        return 0;