Commit 461bb5b9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski

net: dpaa: Fix uninitialized variable in dpaa_stop()

The return value is not initialized on the success path.

Fixes: 901bdff2 ("net: fman: Change return type of disable to void")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Acked-by: default avatarMadalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: default avatarSean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/8c9dc377-8495-495f-a4e5-4d2d0ee12f0c@kili.mountainSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f9bcdcec
...@@ -299,7 +299,8 @@ static int dpaa_stop(struct net_device *net_dev) ...@@ -299,7 +299,8 @@ static int dpaa_stop(struct net_device *net_dev)
{ {
struct mac_device *mac_dev; struct mac_device *mac_dev;
struct dpaa_priv *priv; struct dpaa_priv *priv;
int i, err, error; int i, error;
int err = 0;
priv = netdev_priv(net_dev); priv = netdev_priv(net_dev);
mac_dev = priv->mac_dev; mac_dev = priv->mac_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment