init: remove a build warning in product perf patch 65/158465/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 06:01:19 +0000 (15:01 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 06:01:24 +0000 (15:01 +0900)
There is a build warning caused by product perf patch. Remove
the unused-variable build warning.

Change-Id: If7ce74eef352680f7dd2b6093ff4fc335b6594e9
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
init/main.c

index d5c9249..480beae 100644 (file)
@@ -673,7 +673,9 @@ static int __init_or_module do_one_initcall_debug(initcall_t fn)
        unsigned long long duration;
        int ret;
 
+#ifdef CONFIG_BOOT_PERF
        char name[256]={0};
+#endif
 #ifndef CONFIG_BOOT_PERF
        pr_debug("calling  %pF @ %i\n", fn, task_pid_nr(current));
 #endif