From 8d1d6c6778c00d47eee8073bb991c6799d757c35 Mon Sep 17 00:00:00 2001
From: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Date: Fri, 19 Oct 2018 17:00:17 +0300
Subject: [PATCH] staging: fsl-dpaa2/mac: Fix uninitialized variable

Reported by coverity.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
---
 drivers/staging/fsl-dpaa2/mac/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/staging/fsl-dpaa2/mac/mac.c
+++ b/drivers/staging/fsl-dpaa2/mac/mac.c
@@ -355,7 +355,7 @@ static irqreturn_t dpaa2_mac_irq_handler
 	struct device *dev = (struct device *)arg;
 	struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev);
 	struct dpaa2_mac_priv *priv = dev_get_drvdata(dev);
-	struct dpmac_link_cfg link_cfg;
+	struct dpmac_link_cfg link_cfg = { 0 };
 	u32 status;
 	int err;
 
