diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-02-20 16:58:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-20 20:10:14 -0500 |
commit | 23cac8debcdb34e97c01350b55ddf65161997a06 (patch) | |
tree | 70ed507079c92e7f3d9fc3b40fc9ab54485ec4e5 | |
parent | 262d9b0130edf9aef1819b211d69f48883d2ac10 (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>
-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) | |||
1533 | 1533 | ||
1534 | spin_lock_irq(¤t->sighand->siglock); | 1534 | spin_lock_irq(¤t->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(¤t->sighand->siglock); | 1537 | spin_unlock_irq(¤t->sighand->siglock); |
1538 | put_pid(tty_pgrp); | 1538 | put_pid(tty_pgrp); |
1539 | 1539 | ||