Commit 728b9805 authored by Junxiao Bi's avatar Junxiao Bi Committed by Linus Torvalds

ocfs2: break useless while loop

Signed-off-by: default avatarJunxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: default avatarJoel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 518df6bd
...@@ -1885,8 +1885,10 @@ int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data, ...@@ -1885,8 +1885,10 @@ int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data,
* up nodes that this node contacted */ * up nodes that this node contacted */
while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES, while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES,
nn+1)) < 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; master_request = 1;
break;
}
} }
} }
mle->master = assert->node_idx; mle->master = assert->node_idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment