mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
net/mlx5e: Fix kbuild warnings for uninitialized parameters
kbuild warn about parameters that may be used uninitialized, fix it.
Fixes: a54e20b4fc ('net/mlx5e: Add basic TC tunnel set action for SRIOV offloads')
Signed-off-by: Hadar Hen Zion <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
0827444d05
commit
a757d108dc
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user