diff options
author | Andrew Morton <akpm@osdl.org> | 2004-07-28 09:11:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-28 09:11:37 -0700 |
commit | d17c6b05ee31b3ee1038cc2878ce49348d5d575d (patch) | |
tree | b004e578758deea0eaa18114e59851d94ca1eeec /fs | |
parent | c885402922196a90898745a48e6097db9630b64c (diff) | |
download | history-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.c | 2 |
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; |