From: Randy Dunlap Date: Tue, 20 Feb 2007 21:58:05 +0000 (-0800) Subject: [PATCH] tty: use NULL for ptrs X-Git-Tag: v2.6.21-rc1~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=23cac8debcdb34e97c01350b55ddf65161997a06;p=linux-2.6-omap-h63xx.git [PATCH] tty: use NULL for ptrs Fix sparse warning in tty_io: drivers/char/tty_io.c:1536:34: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index df467284ff4..f24c26d2dba 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1533,7 +1533,7 @@ void disassociate_ctty(int on_exit) spin_lock_irq(¤t->sighand->siglock); tty_pgrp = current->signal->tty_old_pgrp; - current->signal->tty_old_pgrp = 0; + current->signal->tty_old_pgrp = NULL; spin_unlock_irq(¤t->sighand->siglock); put_pid(tty_pgrp);