summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-12-14 18:49:01 -0700
committerChristoph Hellwig <hch@lst.de>2018-12-15 11:02:45 +0100
commit664204410afb3b0f538d176ad0c2713b04abd4b9 (patch)
tree7112f64a719043f975a945723769f6015ae86d43 /drivers/pci
parent8ee94e3fc54d989897969d7ca8deacfe7850855c (diff)
downloadlinux-664204410afb3b0f538d176ad0c2713b04abd4b9.tar.bz2
PCI: Remove unused attr variable in pci_dma_configure
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-driver.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 1b58e058b13f..ea55444e6ead 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -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));
}