]> asedeno.scripts.mit.edu Git - linux.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)
commit566428375a53619196e31803130dd1a7010c4d7f
tree225fc88759e3518bb5d8093a6b91cdaf49ffc04d
parent36a73471e55967248a4911517ab8deb410882060
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: 98db16bab59f ("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