]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd49d98ae1fd659ecb3bf01aeb1097b62cce12f8f
tree8fb8750e267543d6c88535999fd17a5eea5e8460
parent325c901b3f140d94d4aefd800baaf00cacf19f4b
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: 175ab0a85a71 ("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