]> git.baikalelectronics.ru Git - kernel.git/commit
audit: no need to walk list in audit_inode if name is NULL
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:21 +0000 (15:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Oct 2012 04:31:59 +0000 (00:31 -0400)
commitd31c3ad9410afb0d6bcc825cb4ec285a425218ae
treeda913dbacdb569b382182beb70c660ac93a39e5a
parent15aaf73f8c8e7d8e4f64e260258121128c67ff4d
audit: no need to walk list in audit_inode if name is NULL

If name is NULL then the condition in the loop will never be true. Also,
with this change, we can eliminate the check for n->name == NULL since
the equivalence check will never be true if it is.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c