]> git.baikalelectronics.ru Git - kernel.git/commit
audit: remove unnecessary NULL ptr checks from do_path_lookup
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:20 +0000 (15:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Oct 2012 04:31:59 +0000 (00:31 -0400)
commit434b9d79d3273f2f2492a3242fdc450249b006de
treef7f7101c35a019e860233cbb0db2d2ef40bc23e0
parentbb13d0e8615b9ce8bd7d1e084a63179f4e0759ae
audit: remove unnecessary NULL ptr checks from do_path_lookup

As best I can tell, whenever retval == 0, nd->path.dentry and nd->inode
are also non-NULL. Eliminate those checks and the superfluous
audit_context check.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c