* [REF PATCH] block/loop: remove unused range
@ 2020-11-24 5:13 Alex Shi
0 siblings, 0 replies; only message in thread
From: Alex Shi @ 2020-11-24 5:13 UTC (permalink / raw)
Cc: Jens Axboe, linux-block, linux-kernel
The variable isn't used, so don't brother to set it.
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
drivers/block/loop.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 9a27d4f1c08a..ff8d25a379f7 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -2312,7 +2312,6 @@ MODULE_ALIAS("devname:loop-control");
static int __init loop_init(void)
{
int i, nr;
- unsigned long range;
struct loop_device *lo;
int err;
@@ -2351,10 +2350,8 @@ static int __init loop_init(void)
*/
if (max_loop) {
nr = max_loop;
- range = max_loop << part_shift;
} else {
nr = CONFIG_BLK_DEV_LOOP_MIN_COUNT;
- range = 1UL << MINORBITS;
}
err = misc_register(&loop_misc);
--
2.29.GIT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-24 5:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 5:13 [REF PATCH] block/loop: remove unused range Alex Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).