diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2007-08-01 11:41:13 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-03 05:36:01 -0400 |
commit | 3a77d291be53fbc619f14a6199b9b4cac036c476 (patch) | |
tree | fbbdfaf0de61440bbf0707084537ddf5f62e3c4b /arch/powerpc | |
parent | b9c3fdb0f0fe02ba33e87ef947f23cd12e6196fe (diff) |
[POWERPC] Fix a compile warning in pci_32.c
__must_check, so do so.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index cd35c969bb28..04a3109ae3c6 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -581,8 +581,11 @@ pcibios_assign_resources(void) | |||
581 | if ((r->flags & IORESOURCE_UNSET) && r->end && | 581 | if ((r->flags & IORESOURCE_UNSET) && r->end && |
582 | (!ppc_md.pcibios_enable_device_hook || | 582 | (!ppc_md.pcibios_enable_device_hook || |
583 | !ppc_md.pcibios_enable_device_hook(dev, 1))) { | 583 | !ppc_md.pcibios_enable_device_hook(dev, 1))) { |
584 | int rc; | ||
585 | |||
584 | r->flags &= ~IORESOURCE_UNSET; | 586 | r->flags &= ~IORESOURCE_UNSET; |
585 | pci_assign_resource(dev, idx); | 587 | rc = pci_assign_resource(dev, idx); |
588 | BUG_ON(rc); | ||
586 | } | 589 | } |
587 | } | 590 | } |
588 | 591 | ||