Skip to content
Snippets Groups Projects
Commit 0c6e686c authored by David Howells's avatar David Howells
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
parent 00a2f915
No related branches found
No related tags found
No related merge requests found
...@@ -304,9 +304,7 @@ static int __devinit is_valid_resource(struct pci_dev *dev, int idx) ...@@ -304,9 +304,7 @@ static int __devinit is_valid_resource(struct pci_dev *dev, int idx)
static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev)
{ {
struct pci_bus_region region; int limit, i;
int i;
int limit;
if (dev->bus->number != 0) if (dev->bus->number != 0)
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment