mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
dpaa2-eth: fix uninitialized variable warnings
All 3 cases of possible uninitialized variables are false positives since they are used only as output parameters. Nonetheless, fix the warnings. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3233c1514f
commit
85b7a342ba
1 changed files with 3 additions and 3 deletions
|
@ -935,7 +935,7 @@ static int dpaa2_eth_poll(struct napi_struct *napi, int budget)
|
|||
struct dpaa2_eth_channel *ch;
|
||||
struct dpaa2_eth_priv *priv;
|
||||
int rx_cleaned = 0, txconf_cleaned = 0;
|
||||
enum dpaa2_eth_fq_type type;
|
||||
enum dpaa2_eth_fq_type type = 0;
|
||||
int store_cleaned;
|
||||
int err;
|
||||
|
||||
|
@ -1002,7 +1002,7 @@ static void disable_ch_napi(struct dpaa2_eth_priv *priv)
|
|||
|
||||
static int link_state_update(struct dpaa2_eth_priv *priv)
|
||||
{
|
||||
struct dpni_link_state state;
|
||||
struct dpni_link_state state = {0};
|
||||
int err;
|
||||
|
||||
err = dpni_get_link_state(priv->mc_io, 0, priv->mc_token, &state);
|
||||
|
@ -1116,7 +1116,7 @@ static u32 drain_ingress_frames(struct dpaa2_eth_priv *priv)
|
|||
static int dpaa2_eth_stop(struct net_device *net_dev)
|
||||
{
|
||||
struct dpaa2_eth_priv *priv = netdev_priv(net_dev);
|
||||
int dpni_enabled;
|
||||
int dpni_enabled = 0;
|
||||
int retries = 10;
|
||||
u32 drained;
|
||||
|
||||
|
|
Loading…
Reference in a new issue