diff options
| author | Kunwu Chan <[email protected]> | 2024-01-11 06:36:56 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2024-02-25 20:29:30 +0000 |
| commit | 788cd161f99638db81b4c9ce836dbdf9a65c7701 (patch) | |
| tree | 94e1538fc0f9c44b76c8c4bed11d155fb951bc9e /fs/ubifs/lpt_commit.c | |
| parent | ubifs: fix function pointer cast warnings (diff) | |
| download | kernel-788cd161f99638db81b4c9ce836dbdf9a65c7701.tar.gz kernel-788cd161f99638db81b4c9ce836dbdf9a65c7701.zip | |
ubifs: Remove unreachable code in dbg_check_ltab_lnum
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: 6fb324a4b0c3 ("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]>
Diffstat (limited to 'fs/ubifs/lpt_commit.c')
| -rw-r--r-- | fs/ubifs/lpt_commit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index c4d079328b92..07351fdce722 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c @@ -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; |
