summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Velichayshiy <a.velichayshiy@ispras.ru>2026-03-08 02:47:53 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-03-27 21:19:44 -0700
commit7aa89307fcbff038a13c3891e2e94674adc59237 (patch)
tree2de26ee9872795288d9ea148f3b18be98ce7c5d2
parent9b93f7e3277490f0356309c9b241eeeaa27ba859 (diff)
ocfs2: remove redundant error code assignment
Remove the error assignment for variable 'ret' during correct code execution. In subsequent execution, variable 'ret' is overwritten. Found by Linux Verification Center (linuxtesting.org) with SVACE. Link: https://lkml.kernel.org/r/20260307234809.88421-1-a.velichayshiy@ispras.ru Signed-off-by: Alexey Velichayshiy <a.velichayshiy@ispras.ru> Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Jun Piao <piaojun@huawei.com> Cc: Heming Zhao <heming.zhao@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--fs/ocfs2/dlm/dlmmaster.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index eb62724bbe9b..93eff38fdadd 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -930,7 +930,6 @@ redo_request:
if (blocked)
goto wait;
- ret = -EINVAL;
dlm_node_iter_init(mle->vote_map, &iter);
while ((nodenum = dlm_node_iter_next(&iter)) >= 0) {
ret = dlm_do_master_request(res, mle, nodenum);