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

Get rid of redundant assignments to a variable slot from function
adfspart_check_ADFS. It is being assigned a value that is never read
as we are breaking out from the switch case and the function ends.

Reported by clang-tidy [deadcode.DeadStores]

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