Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alexey Velichayshiy and committed by
Andrew Morton
7aa89307 9b93f7e3

-1
-1
fs/ocfs2/dlm/dlmmaster.c
··· 930 930 if (blocked) 931 931 goto wait; 932 932 933 - ret = -EINVAL; 934 933 dlm_node_iter_init(mle->vote_map, &iter); 935 934 while ((nodenum = dlm_node_iter_next(&iter)) >= 0) { 936 935 ret = dlm_do_master_request(res, mle, nodenum);