aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux.local>2002-04-04 16:44:44 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-04-04 16:44:44 -0800
commit27f7db2c57d2d4ca02b6a922989d87285b716898 (patch)
tree18ad78f48ba6e44afc00fce62ee83939c1588312
parentfe2bd67cc97355c1f23408c70efd1a2248d1297b (diff)
downloadhistory-27f7db2c57d2d4ca02b6a922989d87285b716898.tar.gz
Clean up do_truncate due notify_change() locking changev2.5.8-pre2
-rw-r--r--fs/open.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/open.c b/fs/open.c
index c6db81686f2b3..820fef8a609bc 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -73,8 +73,6 @@ out:
int do_truncate(struct dentry *dentry, loff_t length)
{
- struct inode *inode = dentry->d_inode;
- int error;
struct iattr newattrs;
/* Not pretty: "inode->i_size" shouldn't really be signed. But it is. */
@@ -83,8 +81,7 @@ int do_truncate(struct dentry *dentry, loff_t length)
newattrs.ia_size = length;
newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
- error = notify_change(dentry, &newattrs);
- return error;
+ return notify_change(dentry, &newattrs);
}
static inline long do_sys_truncate(const char * path, loff_t length)