From: Veaceslav Falico Date: Wed, 10 Mar 2010 23:23:04 +0000 (-0800) Subject: copy_signal() cleanup: clean tty_audit_fork() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6db2ade10852b7c665b361239c3411abaa880b5;p=openwrt%2Fstaging%2Fblogic.git copy_signal() cleanup: clean tty_audit_fork() 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 Cc: Roland McGrath Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_audit.c b/drivers/char/tty_audit.c index ac16fbec72d0..283a15bc84e3 100644 --- a/drivers/char/tty_audit.c +++ b/drivers/char/tty_audit.c @@ -148,7 +148,6 @@ void tty_audit_fork(struct signal_struct *sig) spin_lock_irq(¤t->sighand->siglock); sig->audit_tty = current->signal->audit_tty; spin_unlock_irq(¤t->sighand->siglock); - sig->tty_audit_buf = NULL; } /**