Skip to contentSkip to conversation

block/loop: remove unused range

PATCH New Alex Shi 1 participant 1 message Nov 24, 2020 Block layer

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 block/loop: remove unused range

The variable isn't used, so don't brother to set it.

---
 drivers/block/loop.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/block/loop.c +0 -3
index 9a27d4f1c08a..ff8d25a379f7 100644
@@ -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);
Signature · 1 line
2.29.GIT