Fix breakage in shmem.c
Replacing error = 0; if (error) op with nothing is not quite an equivalent transformation ;-) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1830,6 +1830,8 @@ shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
|
|||||||
iput(inode);
|
iput(inode);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
error = 0;
|
||||||
#endif
|
#endif
|
||||||
if (dir->i_mode & S_ISGID) {
|
if (dir->i_mode & S_ISGID) {
|
||||||
inode->i_gid = dir->i_gid;
|
inode->i_gid = dir->i_gid;
|
||||||
|
Reference in New Issue
Block a user