Skip to content

Commit a757d10

Browse files
hadarhenziondavem330
authored andcommitted
net/mlx5e: Fix kbuild warnings for uninitialized parameters
kbuild warn about parameters that may be used uninitialized, fix it. Fixes: a54e20b ('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]>
1 parent 0827444 commit a757d10

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ static int mlx5e_create_encap_header_ipv4(struct mlx5e_priv *priv,
737737
struct flowi4 fl4 = {};
738738
char *encap_header;
739739
int encap_size;
740-
__be32 saddr;
741-
int ttl;
740+
__be32 saddr = 0;
741+
int ttl = 0;
742742
int err;
743743

744744
encap_header = kzalloc(max_encap_size, GFP_KERNEL);

0 commit comments

Comments
 (0)