]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ncpfs: setattr return value fix
authorAndrew Morton <akpm@osdl.org>
Wed, 28 Jul 2004 16:11:37 +0000 (09:11 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 28 Jul 2004 16:11:37 +0000 (09:11 -0700)
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>
fs/ncpfs/inode.c

index 7fc8525ea752c5332285bdf28f9f504afc92355c..bea651fd2f94308acde143bbb2167e4dfb212236 100644 (file)
@@ -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;