audit: do not call audit_getname on error
authorEric Paris <eparis@redhat.com>
Tue, 3 Jan 2012 19:23:08 +0000 (14:23 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 17 Jan 2012 21:17:01 +0000 (16:17 -0500)
commit4043cde8ecf7f7d880eb1133c201a3d392fd68c3
treed740c60e6b56565a7e996c3d0308e66f7c8651f8
parent633b45454503489209b0d9a45f9e3cd1b852c614
audit: do not call audit_getname on error

Just a code cleanup really.  We don't need to make a function call just for
it to return on error.  This also makes the VFS function even easier to follow
and removes a conditional on a hot path.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/namei.c
kernel/auditsc.c