diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-06 12:01:24 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-13 21:50:24 -0400 |
commit | b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e (patch) | |
tree | e1bcbf43d70097c6b86cc53e5a4583643bf42b3b /arch/powerpc/kernel/pci-common.c | |
parent | a0a96ee9ba9ea188dee9126dbb404ff6253318cd (diff) |
powerpc: Fix a number of sparse warnings
Address some of the trivial sparse warnings in arch/powerpc.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 7d22a675fe1a..22fe40140e43 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -306,7 +306,7 @@ static struct resource *__pci_mmap_make_offset(struct pci_dev *dev, | |||
306 | unsigned long io_offset = 0; | 306 | unsigned long io_offset = 0; |
307 | int i, res_bit; | 307 | int i, res_bit; |
308 | 308 | ||
309 | if (hose == 0) | 309 | if (hose == NULL) |
310 | return NULL; /* should never happen */ | 310 | return NULL; /* should never happen */ |
311 | 311 | ||
312 | /* If memory, add on the PCI bridge address offset */ | 312 | /* If memory, add on the PCI bridge address offset */ |
@@ -1578,7 +1578,7 @@ fake_pci_bus(struct pci_controller *hose, int busnr) | |||
1578 | { | 1578 | { |
1579 | static struct pci_bus bus; | 1579 | static struct pci_bus bus; |
1580 | 1580 | ||
1581 | if (hose == 0) { | 1581 | if (hose == NULL) { |
1582 | printk(KERN_ERR "Can't find hose for PCI bus %d!\n", busnr); | 1582 | printk(KERN_ERR "Can't find hose for PCI bus %d!\n", busnr); |
1583 | } | 1583 | } |
1584 | bus.number = busnr; | 1584 | bus.number = busnr; |