]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ethernet/qlogic: remove unused array msi_tgt_status
authorColin Ian King <colin.king@canonical.com>
Wed, 8 Aug 2018 18:04:27 +0000 (19:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:16:51 +0000 (14:16 -0700)
Array msi_tgt_status is defined but never used, hence it is
redundant and can be removed.

Cleans up clang warning:
warning: 'msi_tgt_status' defined but not used [-Wunused-const-variable=]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

index 7848cf04b29a83f0a356b3eb5360d6a6e65871f0..822aa393c370e2c653c4c466af18bd27358e9189 100644 (file)
@@ -276,13 +276,6 @@ static const unsigned crb_hub_agt[64] = {
        0,
 };
 
-static const u32 msi_tgt_status[8] = {
-       ISR_INT_TARGET_STATUS, ISR_INT_TARGET_STATUS_F1,
-       ISR_INT_TARGET_STATUS_F2, ISR_INT_TARGET_STATUS_F3,
-       ISR_INT_TARGET_STATUS_F4, ISR_INT_TARGET_STATUS_F5,
-       ISR_INT_TARGET_STATUS_F6, ISR_INT_TARGET_STATUS_F7
-};
-
 /*  PCI Windowing for DDR regions.  */
 
 #define QLCNIC_PCIE_SEM_TIMEOUT        10000