net/mlx5: Fix a compilation warning in events.c
authorTariq Toukan <tariqt@mellanox.com>
Tue, 22 Jan 2019 12:18:04 +0000 (14:18 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 13 Feb 2019 23:40:50 +0000 (15:40 -0800)
commit5400261e4d293d741c5b71a07f6eaabe2c8d3f1b
tree8fb8750e267543d6c88535999fd17a5eea5e8460
parent4cab346bcf74f44665d57726ec2bccff6e679619
net/mlx5: Fix a compilation warning in events.c

Eliminate the following compilation warning:

drivers/net/ethernet/mellanox/mlx5/core/events.c: warning: 'error_str'
may be used uninitialized in this function [-Wuninitialized]:  => 238:3

Fixes: c2fb3db22d35 ("net/mlx5: Rework handling of port module events")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Mikhael Goikhman <migo@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/events.c