]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69e8b09599319d0ee12fc06c563ec4364bf74f09
treed740c60e6b56565a7e996c3d0308e66f7c8651f8
parent1556769f6aff55e7a88fcd10f6cc523c602bb8c9
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