From 718deb6b61e34c200c1f2b706176d9aac334cb2d Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 16 Dec 2009 19:35:36 -0500 Subject: [PATCH] Fix breakage in shmem.c Replacing error = 0; if (error) op with nothing is not quite an equivalent transformation ;-) Signed-off-by: Al Viro --- mm/shmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/shmem.c b/mm/shmem.c index f8485062f3b..eef4ebea515 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -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;