Commit 72d4d0e4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jan Kara

quota: remove an unneeded condition

We know "ret" is zero here so we can remove this condition.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJan Kara <jack@suse.com>
parent 926631c2
......@@ -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)
......
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