arm: omap-common: add missing va_end()

Each call of va_start must be matched by a call of va_end.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
xypron.glpk@gmx.de 2017-04-15 12:29:20 +02:00 committed by Tom Rini
parent 8399538cba
commit 1ecd2a2f06

View File

@ -39,8 +39,10 @@ u32 secure_rom_call(u32 service, u32 proc_id, u32 flag, ...)
num_args = va_arg(ap, u32);
if (num_args > 4)
if (num_args > 4) {
va_end(ap);
return 1;
}
/* Copy args to aligned args structure */
for (i = 0; i < num_args; i++)