diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-02-20 13:58:05 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-20 17:10:14 -0800 |
commit | 23cac8debcdb34e97c01350b55ddf65161997a06 (patch) | |
tree | 70ed507079c92e7f3d9fc3b40fc9ab54485ec4e5 /drivers/char/tty_io.c | |
parent | 262d9b0130edf9aef1819b211d69f48883d2ac10 (diff) | |
download | blackbird-op-linux-23cac8debcdb34e97c01350b55ddf65161997a06.tar.gz blackbird-op-linux-23cac8debcdb34e97c01350b55ddf65161997a06.zip |
[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 <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index df467284ff4e..f24c26d2dba1 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); |