Blame SOURCES/quota-4.06-quotacheck-Remove-a-dead-code-from-process_file.patch
|
|
97c04e |
From 55f1a0604bd4df6d591674b5bef123be1af84e55 Mon Sep 17 00:00:00 2001
|
|
|
97c04e |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
97c04e |
Date: Fri, 20 Nov 2020 15:28:49 +0100
|
|
|
97c04e |
Subject: [PATCH] quotacheck: Remove a dead code from process_file()
|
|
|
97c04e |
MIME-Version: 1.0
|
|
|
97c04e |
Content-Type: text/plain; charset=UTF-8
|
|
|
97c04e |
Content-Transfer-Encoding: 8bit
|
|
|
97c04e |
|
|
|
97c04e |
The ret variable inicialization is useless because it is assigned in
|
|
|
97c04e |
all (two) subsequent code branches.
|
|
|
97c04e |
|
|
|
97c04e |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
97c04e |
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
|
97c04e |
---
|
|
|
97c04e |
quotacheck.c | 1 -
|
|
|
97c04e |
1 file changed, 1 deletion(-)
|
|
|
97c04e |
|
|
|
97c04e |
diff --git a/quotacheck.c b/quotacheck.c
|
|
|
97c04e |
index 5810ced..1b81610 100644
|
|
|
97c04e |
--- a/quotacheck.c
|
|
|
97c04e |
+++ b/quotacheck.c
|
|
|
97c04e |
@@ -672,7 +672,6 @@ Please turn quotas off or use -f to force checking.\n"),
|
|
|
97c04e |
}
|
|
|
97c04e |
}
|
|
|
97c04e |
|
|
|
97c04e |
- ret = 0;
|
|
|
97c04e |
memset(old_info + type, 0, sizeof(old_info[type]));
|
|
|
97c04e |
if (is_tree_qfmt(cfmt))
|
|
|
97c04e |
ret = v2_buffer_file(qfname, fd, type, cfmt);
|
|
|
97c04e |
--
|
|
|
97c04e |
2.26.2
|
|
|
97c04e |
|