]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: remove redundant assignment on variable n
authorColin Ian King <colin.i.king@gmail.com>
Thu, 13 Jan 2022 00:05:45 +0000 (00:05 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Jan 2022 20:00:45 +0000 (13:00 -0700)
commitd7b3687ff6c9bf914c268f946ff567d96d5d5f9e
tree0ef65fe0836014b8dc14dd07445a38b18ac54d30
parent07f94d6c760b6dbfaeb3916656b4effc9db95b6d
aoe: remove redundant assignment on variable n

The variable n is being bit-wise or'd with a value and reassigned
before being returned. The update of n is redundant, replace
the |= operator with | instead. Cleans up clang scan warning:

drivers/block/aoe/aoecmd.c:125:9: warning: Although the value stored
to 'n' is used in the enclosing expression, the value is never
actually read from 'n' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220113000545.1307091-1-colin.i.king@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/aoe/aoecmd.c