Browse Source

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 years ago
parent
commit
1b855e167b
2 changed files with 2 additions and 0 deletions
  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, ...) {}