Corrected code with misleading indentation

GCC 6 reports a warning in ntfs_allowed_dir_access() because the code has
misleading indentation.  Fix by adding braces.  There is no actual change
in behavior because of the '(allowed == 2)' condition.

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
pull/2/head
Jean-Pierre André 2016-07-28 16:30:05 +02:00
parent f86c4403ed
commit d4dfa18f7d
1 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx,
allowed = 1;
else
#endif
{
if (dir_ni)
allowed = ntfs_real_allowed_access(scx, dir_ni,
accesstype);
@ -374,6 +375,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx,
ntfs_inode_close(ni2);
}
}
}
return (allowed);
}