Commit a757d108 authored by Hadar Hen Zion's avatar Hadar Hen Zion Committed by David S. Miller
Browse files

net/mlx5e: Fix kbuild warnings for uninitialized parameters



kbuild warn about parameters that may be used uninitialized, fix it.

Fixes: a54e20b4 ('net/mlx5e: Add basic TC tunnel set action for SRIOV offloads')
Signed-off-by: default avatarHadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0827444d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -737,8 +737,8 @@ static int mlx5e_create_encap_header_ipv4(struct mlx5e_priv *priv,
	struct flowi4 fl4 = {};
	char *encap_header;
	int encap_size;
	__be32 saddr;
	int ttl;
	__be32 saddr = 0;
	int ttl = 0;
	int err;

	encap_header = kzalloc(max_encap_size, GFP_KERNEL);