]> 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)
commit624da4e9ab7cafc8e2aa4e0c9501aa4d7e55058d
tree55114b4f2be2860949a4b1ec463614b93745f424
parent0b3a3c0a744972f5baee62b64f2d04950077fc4e
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