net/dpaa2: fix MAC address initialization
authorShreyansh Jain <shreyansh.jain@nxp.com>
Wed, 17 Oct 2018 06:04:25 +0000 (06:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 17 Oct 2018 08:36:06 +0000 (09:36 +0100)
Build error:
https://mails.dpdk.org/archives/test-report/2018-October/066840.html

Fixes: c3e0a706fd75 ("net/dpaa2: read hardware provided MAC for DPNI devices")

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/dpaa2/dpaa2_ethdev.c

index 27ae474..3987d13 100644 (file)
@@ -1846,7 +1846,10 @@ populate_mac_addr(struct fsl_mc_io *dpni_dev, struct dpaa2_dev_priv *priv,
                  struct ether_addr *mac_entry)
 {
        int ret;
-       struct ether_addr phy_mac = {}, prime_mac = {};
+       struct ether_addr phy_mac, prime_mac;
+
+       memset(&phy_mac, 0, sizeof(struct ether_addr));
+       memset(&prime_mac, 0, sizeof(struct ether_addr));
 
        /* Get the physical device MAC address */
        ret = dpni_get_port_mac_addr(dpni_dev, CMD_PRI_LOW, priv->token,