mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
ocfs2/dlm: remove redundant assignment of variable ret
The variable ret is being assigned a value that is never read, it is
updated later on with a different value. The assignment is redundant
and can be removed.
Addresses-Coverity: ("Unused value")
Link: https://lkml.kernel.org/r/20211007233452.30815-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-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: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
da5e7c8782
commit
848be75d15
|
|
@ -2698,7 +2698,6 @@ static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node)
|
|||
continue;
|
||||
}
|
||||
retry:
|
||||
ret = -EINVAL;
|
||||
mlog(0, "attempting to send begin reco msg to %d\n",
|
||||
nodenum);
|
||||
ret = o2net_send_message(DLM_BEGIN_RECO_MSG, dlm->key,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user