aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-08-10 17:29:55 -0400
committerJan Kara <jack@suse.com>2015-08-11 04:01:24 -0400
commit72d4d0e48995c91ddf5d1f86612c979eca95bd06 (patch)
treebdeb86084e06f3592786022a2a6c81a3de7389de
parent926631c2012d22ab507ace95b3e5f5621f2c72b7 (diff)
quota: remove an unneeded condition
We know "ret" is zero here so we can remove this condition. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jan Kara <jack@suse.com>
-rw-r--r--fs/quota/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 86ded7375c21..3746367098fd 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -141,9 +141,9 @@ static int quota_getinfo(struct super_block *sb, int type, void __user *addr)
141 if (tstate->flags & QCI_ROOT_SQUASH) 141 if (tstate->flags & QCI_ROOT_SQUASH)
142 uinfo.dqi_flags |= DQF_ROOT_SQUASH; 142 uinfo.dqi_flags |= DQF_ROOT_SQUASH;
143 uinfo.dqi_valid = IIF_ALL; 143 uinfo.dqi_valid = IIF_ALL;
144 if (!ret && copy_to_user(addr, &uinfo, sizeof(uinfo))) 144 if (copy_to_user(addr, &uinfo, sizeof(uinfo)))
145 return -EFAULT; 145 return -EFAULT;
146 return ret; 146 return 0;
147} 147}
148 148
149static int quota_setinfo(struct super_block *sb, int type, void __user *addr) 149static int quota_setinfo(struct super_block *sb, int type, void __user *addr)