]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
powerpc: Add missing calls to va_end()
authorDaniel Axtens <dja@axtens.net>
Thu, 17 Dec 2015 08:41:00 +0000 (19:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Dec 2015 12:23:22 +0000 (23:23 +1100)
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>
arch/powerpc/kernel/prom_init.c
arch/powerpc/platforms/powermac/bootx_init.c

index 92dea8df6b26d178cb4c3eca6b5fc0b4e1890019..da5192590c445f89c2a8466128b570c87a133470 100644 (file)
@@ -389,6 +389,7 @@ static void __init prom_printf(const char *format, ...)
                        break;
                }
        }
+       va_end(args);
 }
 
 
index 76f5013c35e5c1cedb9f70b09401b3cc76ec5ab5..c3c9bbb3573ae6bcbc0ff77e73bd68305bf50f43 100644 (file)
@@ -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, ...) {}