OSDN Git Service

net/mlx5: Fix uninitialized variable warning
authorMoshe Tal <moshet@mellanox.com>
Thu, 16 Jul 2020 11:59:30 +0000 (14:59 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Sep 2020 18:59:48 +0000 (11:59 -0700)
commit19f5b63bc9932d51292d72c9dc3ec95e5dfa2289
tree918f37f6cf5c12746c98078243c25dee5f88269e
parented6d9b0228132fee03314b276d946fc3f0cc9e4f
net/mlx5: Fix uninitialized variable warning

Add variable initialization to eliminate the warning
"variable may be used uninitialized".

Fixes: 5f29458b77d5 ("net/mlx5e: Support dump callback in TX reporter")
Signed-off-by: Moshe Tal <moshet@mellanox.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/health.c