]> git.baikalelectronics.ru Git - kernel.git/commit
block: drop dead assignments in loop_init()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Sat, 12 Dec 2020 05:13:02 +0000 (06:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 12 Dec 2020 18:18:56 +0000 (11:18 -0700)
commit32298bdc4fe35d50f0f2767d26d85fbcb9498417
treef7de46d8e8b7a177ab492648e275ca3fc06c8f6a
parent041bc3b67d9bfba88667ca06794ce65918ea579f
block: drop dead assignments in loop_init()

Commit 53c9d2e3416f ("loop: use __register_blkdev to allocate devices on
demand") simplified loop_init(); so computing the range of the block region
is not required anymore and can be dropped.

Drop dead assignments in loop_init().

As compilers will detect these unneeded assignments and optimize this,
the resulting object code is identical before and after this change.

No functional change. No change in object code.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c