]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Delete unused FPGA QPN variable
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 17 Feb 2019 13:21:28 +0000 (15:21 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Feb 2019 22:15:04 +0000 (14:15 -0800)
commitef49e8ebfcdafcdde01abf802b4811a43d2ba7bf
tree225fc88759e3518bb5d8093a6b91cdaf49ffc04d
parentaeb001e8ab6a58fcb0e78215a71b45b675f39632
net/mlx5: Delete unused FPGA QPN variable

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: 4fb3b2574555 ("net/mlx5: FPGA, Handle QP error event")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c