mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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:
parent
bea4c899f2
commit
718deb6b61
1 changed files with 2 additions and 0 deletions
|
@ -1830,6 +1830,8 @@ shmem_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
|
|||
iput(inode);
|
||||
return error;
|
||||
}
|
||||
#else
|
||||
error = 0;
|
||||
#endif
|
||||
if (dir->i_mode & S_ISGID) {
|
||||
inode->i_gid = dir->i_gid;
|
||||
|
|
Loading…
Reference in a new issue