Skip to content

Commit

Permalink
Fix breakage in shmem.c
Browse files Browse the repository at this point in the history
Replacing
	error = 0;
	if (error)
		op
with nothing is not quite an equivalent transformation ;-)

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Dec 17, 2009
1 parent bea4c89 commit 718deb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 718deb6

Please sign in to comment.