From: Junxiao Bi Date: Tue, 12 Nov 2013 23:07:02 +0000 (-0800) Subject: ocfs2: break useless while loop X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=728b98059a2f19393f906ba4febc0f2d1d15f280;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ocfs2: break useless while loop Signed-off-by: Junxiao Bi Signed-off-by: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index 5a0ef78fe029..af3f7aa73e13 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c @@ -1885,8 +1885,10 @@ ok: * 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;