From 38ad45c89387641493c9b35e4894922764a15e41 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Tue, 7 Aug 2018 07:53:36 -0700 Subject: device/pci_device.c: Remove unused variable attr setting In procedure pci_get_resource, when setting an IO mapped base address, variable attr is &= with PCI_BASE_ADDRESS_IO_ATTR_MASK. However, in this particular code flow variable attr is not used later. Remove the line. BUG=b:112253891 TEST=Build and boot grunt. Change-Id: Ia4fdda1be92d22017a7a913a911db15aaa440b69 Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/27928 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/device/pci_device.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/device') diff --git a/src/device/pci_device.c b/src/device/pci_device.c index 593838909c..b4a8a5ce0e 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -249,7 +249,6 @@ struct resource *pci_get_resource(struct device *dev, unsigned long index) resource->flags = 0; } else if (attr & PCI_BASE_ADDRESS_SPACE_IO) { /* An I/O mapped base address. */ - attr &= PCI_BASE_ADDRESS_IO_ATTR_MASK; resource->flags |= IORESOURCE_IO; /* I don't want to deal with 32bit I/O resources. */ resource->limit = 0xffff; -- cgit v1.2.3