]> git.baikalelectronics.ru Git - kernel.git/commit
block/partitions/ldm: Remove redundant assignments
authorMichal Orzel <michalorzel.eng@gmail.com>
Sat, 23 Apr 2022 11:38:11 +0000 (13:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 23 Apr 2022 13:15:26 +0000 (07:15 -0600)
commit76f6ec6fec10d91cd609a93ede2f2cfc9f57b5d1
tree788bd13f4bd95f56c544c832cc400953cb1ac643
parentd51b0cdeef543a67f3e434955764f5abc3936192
block/partitions/ldm: Remove redundant assignments

Get rid of the following redundant assignments:
- to a variable r_cols from function ldm_parse_cmp3
- to variables r_id1 and r_id2 from functions ldm_parse_dgr3 and ldm_parse_dgr4
- to a variable r_index from function ldm_parse_prt3
that end up in values not being read until the end of function.

Reported by clang-tidy [deadcode.DeadStores]

Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com>
Link: https://lore.kernel.org/r/20220423113811.13335-5-michalorzel.eng@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/ldm.c