fs/exec.c: do_execve_common(): use current_user()
authorOleg Nesterov <oleg@redhat.com>
Wed, 3 Jul 2013 22:08:34 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:03 +0000 (16:08 -0700)
commitbd9d43f47d6944019918a801398c587ee86c4b52
tree56e2f0df4307e5562793b67a8efe7261f168acef
parent18c830df771f2ba8b4699fea9af1492275ae627b
fs/exec.c: do_execve_common(): use current_user()

Trivial cleanup.  do_execve_common() can use current_user() and avoid the
unnecessary "struct cred *cred" var.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c