diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-07 02:01:24 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 11:50:24 +1000 |
commit | b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e (patch) | |
tree | e1bcbf43d70097c6b86cc53e5a4583643bf42b3b /arch/powerpc/platforms/pseries/setup.c | |
parent | a0a96ee9ba9ea188dee9126dbb404ff6253318cd (diff) | |
download | talos-op-linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.tar.gz talos-op-linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.zip |
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/platforms/pseries/setup.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index c11c8238797c..b19cd8334630 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -183,7 +183,7 @@ static void __init pseries_mpic_init_IRQ(void) np = of_find_node_by_path("/"); naddr = of_n_addr_cells(np); opprop = of_get_property(np, "platform-open-pic", &opplen); - if (opprop != 0) { + if (opprop != NULL) { openpic_addr = of_read_number(opprop, naddr); printk(KERN_DEBUG "OpenPIC addr: %lx\n", openpic_addr); } |