Skip to content

Commit

Permalink
[PATCH] tty: use NULL for ptrs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rddunlap authored and Linus Torvalds committed Feb 21, 2007
1 parent 262d9b0 commit 23cac8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ void disassociate_ctty(int on_exit)

spin_lock_irq(&current->sighand->siglock);
tty_pgrp = current->signal->tty_old_pgrp;
current->signal->tty_old_pgrp = 0;
current->signal->tty_old_pgrp = NULL;
spin_unlock_irq(&current->sighand->siglock);
put_pid(tty_pgrp);

Expand Down

0 comments on commit 23cac8d

Please sign in to comment.