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

Get rid of redundant assignments to a variable sectors from functions
badblocks_check and badblocks_clear. This variable, that is a function
parameter, is being assigned a value that is never 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-1-michalorzel.eng@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/badblocks.c