Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 718deb6b authored by Al Viro's avatar Al Viro
Browse files

Fix breakage in shmem.c



Replacing
	error = 0;
	if (error)
		op
with nothing is not quite an equivalent transformation ;-)

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bea4c899
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;