Fix an uninitialized var 41/280841/1
authorMichal Bloch <m.bloch@samsung.com>
Mon, 5 Sep 2022 19:16:24 +0000 (21:16 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Mon, 5 Sep 2022 19:16:24 +0000 (21:16 +0200)
Change-Id: I8dc8f571a2723e86308373f394b9c9ab9133f3c8

kernel/logger.c

index cf5dd8a..62b1d32 100644 (file)
@@ -1367,7 +1367,7 @@ out_free_buffer:
 
 static int __init logger_init(void)
 {
-       int ret;
+       int ret = 0;
 
        if (main_buffer_size)
                ret = create_log(LOGGER_LOG_MAIN, main_buffer_size*1024);