aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-02-20 16:58:05 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-20 20:10:14 -0500
commit23cac8debcdb34e97c01350b55ddf65161997a06 (patch)
tree70ed507079c92e7f3d9fc3b40fc9ab54485ec4e5 /drivers/char
parent262d9b0130edf9aef1819b211d69f48883d2ac10 (diff)
[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')
-rw-r--r--drivers/char/tty_io.c2
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)
1533 1533
1534 spin_lock_irq(&current->sighand->siglock); 1534 spin_lock_irq(&current->sighand->siglock);
1535 tty_pgrp = current->signal->tty_old_pgrp; 1535 tty_pgrp = current->signal->tty_old_pgrp;
1536 current->signal->tty_old_pgrp = 0; 1536 current->signal->tty_old_pgrp = NULL;
1537 spin_unlock_irq(&current->sighand->siglock); 1537 spin_unlock_irq(&current->sighand->siglock);
1538 put_pid(tty_pgrp); 1538 put_pid(tty_pgrp);
1539 1539