From: Josef 'Jeff' Sipek Date: Wed, 9 May 2007 09:33:41 +0000 (-0700) Subject: fs: fix indentation in do_path_lookup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62ce39c531860aee6c12128c629b0a82f656a306;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fs: fix indentation in do_path_lookup Signed-off-by: Josef 'Jeff' Sipek Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/namei.c b/fs/namei.c index 856b2f5da51d..19f178ec5744 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1155,11 +1155,9 @@ static int fastcall do_path_lookup(int dfd, const char *name, current->total_link_count = 0; retval = link_path_walk(name, nd); out: - if (likely(retval == 0)) { - if (unlikely(!audit_dummy_context() && nd && nd->dentry && + if (unlikely(!retval && !audit_dummy_context() && nd->dentry && nd->dentry->d_inode)) audit_inode(name, nd->dentry->d_inode); - } out_fail: return retval;