Commit efe7d8dd authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] sparse: use NULL for pointer

drivers/char/isicom.c:1274:14: warning: Using plain integer as NULL pointer
arch/x86_64/oprofile/../../i386/oprofile/backtrace.c:30:10: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5547e08a
......@@ -27,7 +27,7 @@ dump_backtrace(struct frame_head * head)
/* frame pointers should strictly progress back up the stack
* (towards higher addresses) */
if (head >= head->ebp)
return 0;
return NULL;
return head->ebp;
}
......
......@@ -1271,7 +1271,7 @@ static void isicom_shutdown_port(struct isi_port * port)
}
port->flags &= ~ASYNC_INITIALIZED;
/* 3rd October 2000 : Vinayak P Risbud */
port->tty = 0;
port->tty = NULL;
spin_unlock_irqrestore(&card->card_lock, flags);
/*Fix done by Anil .S on 30-04-2001
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment