PCI: Remove unused attr variable in pci_dma_configure
authorNathan Chancellor <natechancellor@gmail.com>
Sat, 15 Dec 2018 01:49:01 +0000 (18:49 -0700)
committerChristoph Hellwig <hch@lst.de>
Sat, 15 Dec 2018 10:02:45 +0000 (11:02 +0100)
Clang warns:

drivers/pci/pci-driver.c:1603:21: error: unused variable 'attr'
[-Werror,-Wunused-variable]

Commit e5361ca29f2f ("ACPI / scan: Refactor _CCA enforcement") removed
attr's use and replaced it with its assigned value so it is no longer
needed.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/pci/pci-driver.c

index 1b58e058b13f9b88c541a1508c89ef81b56e7a08..ea55444e6eaddfcb572a9b2dd50f9dceb0b08a3c 100644 (file)
@@ -1600,7 +1600,6 @@ static int pci_dma_configure(struct device *dev)
                ret = of_dma_configure(dev, bridge->parent->of_node, true);
        } else if (has_acpi_companion(bridge)) {
                struct acpi_device *adev = to_acpi_device_node(bridge->fwnode);
-               enum dev_dma_attr attr = acpi_get_dma_attr(adev);
 
                ret = acpi_dma_configure(dev, acpi_get_dma_attr(adev));
        }