[lvc-project] [PATCH] ocfs2: remove redundant error code assignment
Joseph Qi
joseph.qi at linux.alibaba.com
Mon Mar 9 04:10:02 MSK 2026
On 3/8/26 7:47 AM, Alexey Velichayshiy wrote:
> Removed 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.
>
> Signed-off-by: Alexey Velichayshiy <a.velichayshiy at ispras.ru>
Acked-by: Joseph Qi <joseph.qi at linux.alibaba.com>
> ---
> fs/ocfs2/dlm/dlmmaster.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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 @@ struct dlm_lock_resource * dlm_get_lock_resource(struct dlm_ctxt *dlm,
> 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);
More information about the lvc-project
mailing list