summaryrefslogtreecommitdiffstats
path: root/arch/sparc/prom/bootstr_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/prom/bootstr_32.c')
-rw-r--r--arch/sparc/prom/bootstr_32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/prom/bootstr_32.c b/arch/sparc/prom/bootstr_32.c
index 916831da7e67..f5ec32e0d419 100644
--- a/arch/sparc/prom/bootstr_32.c
+++ b/arch/sparc/prom/bootstr_32.c
@@ -29,7 +29,8 @@ prom_getbootargs(void)
/* Start from 1 and go over fd(0,0,0)kernel */
for(iter = 1; iter < 8; iter++) {
arg = (*(romvec->pv_v0bootargs))->argv[iter];
- if(arg == 0) break;
+ if (arg == NULL)
+ break;
while(*arg != 0) {
/* Leave place for space and null. */
if(cp >= barg_buf + BARG_LEN-2){
OpenPOWER on IntegriCloud