]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
quota: remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Aug 2015 21:29:55 +0000 (00:29 +0300)
committerJan Kara <jack@suse.com>
Tue, 11 Aug 2015 08:01:24 +0000 (10:01 +0200)
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>
fs/quota/quota.c

index 86ded7375c216d55fe26eb1dfd6ff366ce1fa29d..3746367098fda369120ccf0eab4ca0249ed64cb4 100644 (file)
@@ -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)