]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PCI: Remove set but unused variable
authorJoshua Abraham <j.abraham1776@gmail.com>
Wed, 12 Sep 2018 02:39:08 +0000 (16:39 -1000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Sep 2018 21:35:15 +0000 (16:35 -0500)
Remove a set but unused variable in quirks.c.  Fixes warning:

  variable ‘mmio_sys_info’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c

index 6bc27b7fd452ad591626625c69454d85041c1a02..0cd60ca7899d7dafd232ad4fc503398755cff3fb 100644 (file)
@@ -4987,7 +4987,6 @@ static void quirk_switchtec_ntb_dma_alias(struct pci_dev *pdev)
        void __iomem *mmio;
        struct ntb_info_regs __iomem *mmio_ntb;
        struct ntb_ctrl_regs __iomem *mmio_ctrl;
-       struct sys_info_regs __iomem *mmio_sys_info;
        u64 partition_map;
        u8 partition;
        int pp;
@@ -5008,7 +5007,6 @@ static void quirk_switchtec_ntb_dma_alias(struct pci_dev *pdev)
 
        mmio_ntb = mmio + SWITCHTEC_GAS_NTB_OFFSET;
        mmio_ctrl = (void __iomem *) mmio_ntb + SWITCHTEC_NTB_REG_CTRL_OFFSET;
-       mmio_sys_info = mmio + SWITCHTEC_GAS_SYS_INFO_OFFSET;
 
        partition = ioread8(&mmio_ntb->partition_id);