aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells2012-12-12 09:36:40 -0600
committerDavid Howells2012-12-12 09:46:15 -0600
commit0c6e686ce4f7a346f8e6f39202025ddce525ac8a (patch)
tree31615cbc62fe20002d3c2a76e8bfada625638aac /arch/mn10300
parent00a2f9151838abf0e84ed05ac1282bf57ac4d01c (diff)
downloadam43-linux-kernel-0c6e686ce4f7a346f8e6f39202025ddce525ac8a.tar.gz
am43-linux-kernel-0c6e686ce4f7a346f8e6f39202025ddce525ac8a.tar.xz
am43-linux-kernel-0c6e686ce4f7a346f8e6f39202025ddce525ac8a.zip
MN10300: Get rid of unused variable from ASB2305 PCI code
Get rid of an unused variable in pcibios_fixup_device_resources() which leads to the following warning: arch/mn10300/unit-asb2305/pci.c: In function 'pcibios_fixup_device_resources': arch/mn10300/unit-asb2305/pci.c:324:24: warning: unused variable 'region' [-Wunused-variable] Whilst we're at it, merge the two integer variable declarations into one line. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300')
-rw-r--r--arch/mn10300/unit-asb2305/pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c
index a3239b0f965..e2059486d3f 100644
--- a/arch/mn10300/unit-asb2305/pci.c
+++ b/arch/mn10300/unit-asb2305/pci.c
@@ -304,9 +304,7 @@ static int __devinit is_valid_resource(struct pci_dev *dev, int idx)
304 304
305static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) 305static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev)
306{ 306{
307 struct pci_bus_region region; 307 int limit, i;
308 int i;
309 int limit;
310 308
311 if (dev->bus->number != 0) 309 if (dev->bus->number != 0)
312 return; 310 return;