Skip to content

Commit f492fb3

Browse files
ColinIanKingakpm00
authored andcommitted
ocfs2: remove redundant assignment to variable status
Variable status is being assigned and error code that is never read, it is being assigned inside of a do-while loop. The assignment is redundant and can be removed. Cleans up clang scan build warning: fs/ocfs2/dlm/dlmdomain.c:1530:2: warning: Value stored to 'status' is never read [deadcode.DeadStores] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Acked-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Gang He <[email protected]> Cc: Jun Piao <[email protected]> Cc: Heming Zhao <[email protected]> Cc: Dan Carpenter <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 36defdd commit f492fb3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/ocfs2/dlm/dlmdomain.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,6 @@ static void dlm_send_join_asserts(struct dlm_ctxt *dlm,
15271527
{
15281528
int status, node, live;
15291529

1530-
status = 0;
15311530
node = -1;
15321531
while ((node = find_next_bit(node_map, O2NM_MAX_NODES,
15331532
node + 1)) < O2NM_MAX_NODES) {

0 commit comments

Comments
 (0)