diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-06 18:01:24 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 03:50:24 +0200 |
commit | b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e (patch) | |
tree | e1bcbf43d70097c6b86cc53e5a4583643bf42b3b /arch/powerpc/kernel/legacy_serial.c | |
parent | powerpc/pseries: Simplify H_GET_TERM_CHAR (diff) | |
download | linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.tar.xz 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/kernel/legacy_serial.c')
-rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index 0733b05eb856..af1c63fc7dac 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -99,7 +99,7 @@ static int __init add_legacy_port(struct device_node *np, int want_index, legacy_serial_count = index + 1; /* Check if there is a port who already claimed our slot */ - if (legacy_serial_infos[index].np != 0) { + if (legacy_serial_infos[index].np != NULL) { /* if we still have some room, move it, else override */ if (legacy_serial_count < MAX_LEGACY_SERIAL_PORTS) { printk(KERN_DEBUG "Moved legacy port %d -> %d\n", |