Skip to content

Commit

Permalink
powerpc: Add missing calls to va_end()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Axtens authored and Michael Ellerman committed Dec 17, 2015
1 parent e9d764f commit 1b855e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ static void __init prom_printf(const char *format, ...)
break;
}
}
va_end(args);
}


Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/powermac/bootx_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...) {}
Expand Down

0 comments on commit 1b855e1

Please sign in to comment.