ocfs2: break useless while loop
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com> Signed-off-by: Joel Becker <jlbec@evilplan.org> Cc: Mark Fasheh <mfasheh@suse.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
518df6bdf3
commit
728b98059a
1 changed files with 3 additions and 1 deletions
|
@ -1885,8 +1885,10 @@ int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data,
|
|||
* up nodes that this node contacted */
|
||||
while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES,
|
||||
nn+1)) < O2NM_MAX_NODES) {
|
||||
if (nn != dlm->node_num && nn != assert->node_idx)
|
||||
if (nn != dlm->node_num && nn != assert->node_idx) {
|
||||
master_request = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
mle->master = assert->node_idx;
|
||||
|
|
Loading…
Reference in a new issue