From 17e0146ce93eb4a2ab77aeab85e7757f14794ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20R=C4=B1za=20KESK=C4=B0N?= Date: Wed, 27 Sep 2017 00:03:30 +0300 Subject: [PATCH] performance fix change for -> while --- init/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 0ee9c6866ada1d..a499bd58e1c45e 100644 --- a/init/main.c +++ b/init/main.c @@ -267,7 +267,9 @@ static int __init set_init_arg(char *param, char *val, repair_env_string(param, val, unused, NULL); - for (i = 0; argv_init[i]; i++) { + i = 0; + while(argv_init[i]){ + i++; if (i == MAX_INIT_ARGS) { panic_later = "init"; panic_param = param;