]> 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)
commit9e506105c54b2233e37022296f3c59f120066cee
tree225fc88759e3518bb5d8093a6b91cdaf49ffc04d
parentfdce18596fbf38e3faf300ffaaad94b02c9dc0c0
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: 9d5fe7dcd30d ("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