Skip to content

Commit

Permalink
ubifs: Remove unreachable code in dbg_check_ltab_lnum
Browse files Browse the repository at this point in the history
Because there is no break statement in the dead loop above,it is
impossible to execute the 'err=0' statement.Delete the code that
will never execute.

Fixes: 6fb324a ("UBIFS: allocate ltab checking buffer on demand")
Signed-off-by: Kunwu Chan <[email protected]>
Cc: Kunwu Chan <[email protected]>
Suggested-by: Richard Weinberger <[email protected]>
Reviewed-by: Zhihao Cheng <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
KunWuChan authored and richardweinberger committed Feb 25, 2024
1 parent ec724e5 commit 788cd16
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ubifs/lpt_commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,6 @@ static int dbg_check_ltab_lnum(struct ubifs_info *c, int lnum)
len -= node_len;
}

err = 0;
out:
vfree(buf);
return err;
Expand Down

0 comments on commit 788cd16

Please sign in to comment.