Re: [PATCH v3] block: drop dead assignments in loop_init()

2020-12-12 Thread Jens Axboe
On 12/11/20 10:13 PM, Lukas Bulwahn wrote: > Commit 8410d38c2552 ("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 compil

[PATCH v3] block: drop dead assignments in loop_init()

2020-12-11 Thread Lukas Bulwahn
Commit 8410d38c2552 ("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 t