summaryrefslogtreecommitdiffstats
path: root/kernel/fs/quota/quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/quota/quota.c')
-rw-r--r--kernel/fs/quota/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fs/quota/quota.c b/kernel/fs/quota/quota.c
index 86ded7375..374636709 100644
--- a/kernel/fs/quota/quota.c
+++ b/kernel/fs/quota/quota.c
@@ -141,9 +141,9 @@ static int quota_getinfo(struct super_block *sb, int type, void __user *addr)
if (tstate->flags & QCI_ROOT_SQUASH)
uinfo.dqi_flags |= DQF_ROOT_SQUASH;
uinfo.dqi_valid = IIF_ALL;
- if (!ret && copy_to_user(addr, &uinfo, sizeof(uinfo)))
+ if (copy_to_user(addr, &uinfo, sizeof(uinfo)))
return -EFAULT;
- return ret;
+ return 0;
}
static int quota_setinfo(struct super_block *sb, int type, void __user *addr)