Commit d17c6b05 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c8854029
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment