Commit 19f5b63b authored by Moshe Tal's avatar Moshe Tal Committed by Saeed Mahameed
Browse files

net/mlx5: Fix uninitialized variable warning



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

Fixes: 5f29458b ("net/mlx5e: Support dump callback in TX reporter")
Signed-off-by: default avatarMoshe Tal <moshet@mellanox.com>
Reviewed-by: default avatarAya Levin <ayal@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent ed6d9b02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -242,8 +242,8 @@ static int mlx5e_health_rsc_fmsg_binary(struct devlink_fmsg *fmsg,

{
	u32 data_size;
	int err = 0;
	u32 offset;
	int err;

	for (offset = 0; offset < value_len; offset += data_size) {
		data_size = value_len - offset;