summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Písař <ppisar@redhat.com>2020-11-20 15:28:49 +0100
committerJan Kara <jack@suse.cz>2020-11-23 09:37:53 +0100
commit55f1a0604bd4df6d591674b5bef123be1af84e55 (patch)
tree5638268e6eb9d5528f96aa1dfe59e70bb0650642
parent02b222a335527f1031cc9495d8c5ebc1bc5b1d4e (diff)
downloadlinuxquota-55f1a0604bd4df6d591674b5bef123be1af84e55.tar.gz
quotacheck: Remove a dead code from process_file()
The ret variable inicialization is useless because it is assigned in all (two) subsequent code branches. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--quotacheck.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/quotacheck.c b/quotacheck.c
index 5810ced..1b81610 100644
--- a/quotacheck.c
+++ b/quotacheck.c
@@ -672,7 +672,6 @@ Please turn quotas off or use -f to force checking.\n"),
}
}
- ret = 0;
memset(old_info + type, 0, sizeof(old_info[type]));
if (is_tree_qfmt(cfmt))
ret = v2_buffer_file(qfname, fd, type, cfmt);