mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
@@ -1913,9 +1913,6 @@ void __audit_getname(const char *name)
|
||||
struct audit_context *context = current->audit_context;
|
||||
struct audit_names *n;
|
||||
|
||||
if (IS_ERR(name) || !name)
|
||||
return;
|
||||
|
||||
if (!context->in_syscall) {
|
||||
#if AUDIT_DEBUG == 2
|
||||
printk(KERN_ERR "%s:%d(:%d): ignoring getname(%p)\n",
|
||||
|
||||
Reference in New Issue
Block a user