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>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
a0a96ee9ba
commit
b0d436c739
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user