Skip to content

Commit

Permalink
[POWERPC] Fix a compile warning in pci_32.c
Browse files Browse the repository at this point in the history
__must_check, so do so.

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Segher Boessenkool authored and Paul Mackerras committed Aug 3, 2007
1 parent b9c3fdb commit 3a77d29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/powerpc/kernel/pci_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,11 @@ pcibios_assign_resources(void)
if ((r->flags & IORESOURCE_UNSET) && r->end &&
(!ppc_md.pcibios_enable_device_hook ||
!ppc_md.pcibios_enable_device_hook(dev, 1))) {
int rc;

r->flags &= ~IORESOURCE_UNSET;
pci_assign_resource(dev, idx);
rc = pci_assign_resource(dev, idx);
BUG_ON(rc);
}
}

Expand Down

0 comments on commit 3a77d29

Please sign in to comment.