diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-08-11 00:29:55 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.com> | 2015-08-11 10:01:24 +0200 |
commit | 72d4d0e48995c91ddf5d1f86612c979eca95bd06 (patch) | |
tree | bdeb86084e06f3592786022a2a6c81a3de7389de | |
parent | 926631c2012d22ab507ace95b3e5f5621f2c72b7 (diff) | |
download | linux-72d4d0e48995c91ddf5d1f86612c979eca95bd06.tar.gz linux-72d4d0e48995c91ddf5d1f86612c979eca95bd06.tar.bz2 linux-72d4d0e48995c91ddf5d1f86612c979eca95bd06.zip |
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.c | 4 |
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) 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) |