projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c3fdb
)
[POWERPC] Fix a compile warning in pci_32.c
author
Segher Boessenkool
<segher@kernel.crashing.org>
Wed, 1 Aug 2007 15:41:13 +0000
(
01:41
+1000)
committer
Paul Mackerras
<paulus@samba.org>
Fri, 3 Aug 2007 09:36:01 +0000
(19:36 +1000)
__must_check, so do so.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_32.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/pci_32.c
b/arch/powerpc/kernel/pci_32.c
index cd35c969bb283f5a52d76b14e8bb208799aafd9f..04a3109ae3c61e56a7ac0a815774932855484256 100644
(file)
--- a/
arch/powerpc/kernel/pci_32.c
+++ b/
arch/powerpc/kernel/pci_32.c
@@
-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);
}
}