aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-12-16 19:35:36 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-16 19:48:48 -0500
commit718deb6b61e34c200c1f2b706176d9aac334cb2d (patch)
treefdf37190a8663d507bc740a6fa21437c6c22e611 /mm/shmem.c
parentbea4c899f2b5fad80099aea979780ef19f9b1987 (diff)
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>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c2
1 files changed, 2 insertions, 0 deletions
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)
1830 iput(inode); 1830 iput(inode);
1831 return error; 1831 return error;
1832 } 1832 }
1833#else
1834 error = 0;
1833#endif 1835#endif
1834 if (dir->i_mode & S_ISGID) { 1836 if (dir->i_mode & S_ISGID) {
1835 inode->i_gid = dir->i_gid; 1837 inode->i_gid = dir->i_gid;