]> git.baikalelectronics.ru Git - kernel.git/commit
loop: remove redundant initialization of pointer node
authorColin Ian King <colin.i.king@gmail.com>
Thu, 13 Jan 2022 00:14:32 +0000 (00:14 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Jan 2022 20:00:32 +0000 (13:00 -0700)
commit07f94d6c760b6dbfaeb3916656b4effc9db95b6d
tree55114b4f2be2860949a4b1ec463614b93745f424
parent644ed20fd38a6f5f68deb15bdcbdbdc5054fee71
loop: remove redundant initialization of pointer node

The pointer node is being initialized with a value that is never
read, it is being re-assigned the same value a little futher on.
Remove the redundant initialization. Cleans up clang scan warning:

drivers/block/loop.c:823:19: warning: Value stored to 'node' during
its initialization is never read [deadcode.DeadStores]

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