浏览代码

powerpc: Add missing calls to va_end()

cppcheck picked up that there were a couple of missing va_end()
calls in functions using va_start().

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Daniel Axtens 9 年之前
父节点
当前提交
1b855e167b
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      arch/powerpc/kernel/prom_init.c
  2. 1 0
      arch/powerpc/platforms/powermac/bootx_init.c

+ 1 - 0
arch/powerpc/kernel/prom_init.c

@@ -389,6 +389,7 @@ static void __init prom_printf(const char *format, ...)
 			break;
 		}
 	}
+	va_end(args);
 }
 
 

+ 1 - 0
arch/powerpc/platforms/powermac/bootx_init.c

@@ -84,6 +84,7 @@ static void __init bootx_printf(const char *format, ...)
 			break;
 		}
 	}
+	va_end(args);
 }
 #else /* CONFIG_BOOTX_TEXT */
 static void __init bootx_printf(const char *format, ...) {}