diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-25 20:49:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:12 -0500 |
commit | dba19c6064766730dd64757a010ec3aec503ecdb (patch) | |
tree | 2071835ccfcb169b6219be7d5a4692fcfdcbd2c5 /security/inode.c | |
parent | 1b9d5ff7644ddf2723c9205f4726c95ec01bf033 (diff) |
get rid of open-coded S_ISREG(), etc.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/inode.c')
-rw-r--r-- | security/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/inode.c b/security/inode.c index a67004f9d106..bfe02e68f92e 100644 --- a/security/inode.c +++ b/security/inode.c | |||
@@ -164,7 +164,7 @@ static int create_by_name(const char *name, mode_t mode, | |||
164 | mutex_lock(&parent->d_inode->i_mutex); | 164 | mutex_lock(&parent->d_inode->i_mutex); |
165 | *dentry = lookup_one_len(name, parent, strlen(name)); | 165 | *dentry = lookup_one_len(name, parent, strlen(name)); |
166 | if (!IS_ERR(*dentry)) { | 166 | if (!IS_ERR(*dentry)) { |
167 | if ((mode & S_IFMT) == S_IFDIR) | 167 | if (S_ISDIR(mode)) |
168 | error = mkdir(parent->d_inode, *dentry, mode); | 168 | error = mkdir(parent->d_inode, *dentry, mode); |
169 | else | 169 | else |
170 | error = create(parent->d_inode, *dentry, mode); | 170 | error = create(parent->d_inode, *dentry, mode); |