]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix false compilation warning
authorTariq Toukan <tariqt@mellanox.com>
Fri, 29 Mar 2019 22:38:04 +0000 (15:38 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 2 Apr 2019 19:49:38 +0000 (12:49 -0700)
commit39c78e9664c6c0aa1656eeceea117a64f0a2a82f
treee87f0fe80263028e9261becb1288fca2f5094c69
parentaae70a7c152f6ed5882df45b5166f5536c23e889
net/mlx5: Fix false compilation warning

Fix the following warning:
drivers/net/ethernet/mellanox/mlx5/core//fs_core.c:845:5:
warning: 'err' may be used uninitialized in this function
[-Wmaybe-uninitialized]

No real issue here. This is only a false compiler warning.
The 'err' variable is guaranteed to be init by time of usage.

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c