Skip to content

Commit

Permalink
MN10300: Get rid of unused variable from ASB2305 PCI code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells committed Dec 12, 2012
1 parent 00a2f91 commit 0c6e686
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mn10300/unit-asb2305/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct pci_bus_region region;
int i;
int limit;
int limit, i;

if (dev->bus->number != 0)
return;
Expand Down

0 comments on commit 0c6e686

Please sign in to comment.