projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bea4c89
)
Fix breakage in shmem.c
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 00:35:36 +0000
(19:35 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 00:48:48 +0000
(19:48 -0500)
Replacing
error = 0;
if (error)
op
with nothing is not quite an equivalent transformation ;-)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/shmem.c
patch
|
blob
|
history
diff --git
a/mm/shmem.c
b/mm/shmem.c
index
f848506
..
eef4ebe
100644
(file)
--- 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;
}
iput(inode);
return error;
}
+#else
+ error = 0;
#endif
if (dir->i_mode & S_ISGID) {
inode->i_gid = dir->i_gid;
#endif
if (dir->i_mode & S_ISGID) {
inode->i_gid = dir->i_gid;