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

2020-12-11 Thread Joe Perches
On Fri, 2020-12-11 at 19:40 +0100, Lukas Bulwahn wrote: > On Fri, Dec 11, 2020 at 7:23 PM Julia Lawall wrote: > > On Fri, 11 Dec 2020, Lukas Bulwahn wrote: > > > Commit 8410d38c2552 ("loop: use __register_blkdev to allocate devices on > > > demand") simplified loop_init(); so computing the range o

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

2020-12-11 Thread Lukas Bulwahn
On Fri, Dec 11, 2020 at 7:23 PM Julia Lawall wrote: > > > > On Fri, 11 Dec 2020, 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 b

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

2020-12-11 Thread Julia Lawall
On Fri, 11 Dec 2020, 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 compi

[PATCH] 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