Skip to contentSkip to conversation

boot_delay return value fix

PATCH New Dave Young 1 participant 1 message Nov 3, 2013 Printk

lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/1 boot_delay return value fix

Kernel report "Malformed early option boot_delay" because it returns non-zero value. Move to 'return 0' now because there's no reason it should return 1.

---
Andrew, It's based on previous patch of changing to early_param. Feel free to fold them if you want. If need I repost please just tell me.

 kernel/printk/printk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/printk/printk.c +1 -1
@@ -820,7 +820,7 @@ static int __init boot_delay_setup(char
 	pr_debug("boot_delay: %u, preset_lpj: %ld, lpj: %lu, "
 		"HZ: %d, loops_per_msec: %llu\n",
 		boot_delay, preset_lpj, lpj, HZ, loops_per_msec);
-	return 1;
+	return 0;
 }
 early_param("boot_delay", boot_delay_setup);