aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-07-28 09:11:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-28 09:11:37 -0700
commitd17c6b05ee31b3ee1038cc2878ce49348d5d575d (patch)
treeb004e578758deea0eaa18114e59851d94ca1eeec /fs
parentc885402922196a90898745a48e6097db9630b64c (diff)
downloadhistory-d17c6b05ee31b3ee1038cc2878ce49348d5d575d.tar.gz
[PATCH] ncpfs: setattr return value fix
Arjan's new warning found a bug! fs/ncpfs/inode.c: In function `ncp_notify_change': fs/ncpfs/inode.c:960: warning: ignoring return value of `inode_setattr', declared with attribute warn_unused_result Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/ncpfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
index 7fc8525ea752c5..bea651fd2f9430 100644
--- a/fs/ncpfs/inode.c
+++ b/fs/ncpfs/inode.c
@@ -957,7 +957,7 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
#endif
}
if (!result)
- inode_setattr(inode, attr);
+ result = inode_setattr(inode, attr);
out:
unlock_kernel();
return result;