Skip to content

Commit

Permalink
copy_signal() cleanup: clean tty_audit_fork()
Browse files Browse the repository at this point in the history
Remove unneeded initialization in tty_audit_fork().  It is called only via
copy_signal() and is useless after the kmem_cache_zalloc() was used.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Veaceslav Falico authored and Linus Torvalds committed Mar 12, 2010
1 parent 93c5990 commit d6db2ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/tty_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ void tty_audit_fork(struct signal_struct *sig)
spin_lock_irq(&current->sighand->siglock);
sig->audit_tty = current->signal->audit_tty;
spin_unlock_irq(&current->sighand->siglock);
sig->tty_audit_buf = NULL;
}

/**
Expand Down

0 comments on commit d6db2ad

Please sign in to comment.