OSDN Git Service

net/mlx5: Delete unused FPGA QPN variable
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 17 Feb 2019 13:21:28 +0000 (15:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:25 +0000 (14:50 +0100)
commit9cef92d809914c64025fe8a47af9d6a2bce35e43
treef5e0edd95b67cfa3d0d618a95fad5780b6dea8c4
parent4da9a15e9c5f8959d8a5bb10611333faab93147e
net/mlx5: Delete unused FPGA QPN variable

[ Upstream commit 566428375a53619196e31803130dd1a7010c4d7f ]

fpga_qpn was assigned but never used and compilation with W=1
produced the following warning:

drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c: In function _mlx5_fpga_event_:
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c:320:6: warning:
variable _fpga_qpn_ set but not used [-Wunused-but-set-variable]
  u32 fpga_qpn;
      ^~~~~~~~

Fixes: 98db16bab59f ("net/mlx5: FPGA, Handle QP error event")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c