mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
m68k: sun3: Remove unused vsprintf() return value in prom_printf()
When building with W=1:
arch/m68k/sun3/prom/printf.c: In function ‘prom_printf’:
arch/m68k/sun3/prom/printf.c:28:13: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
28 | int i;
| ^
As the return value of vsprintf() is unused, and serves no practical
purpose here, fix this by removing the variable.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/94a1e61b1651ff05f4a59655d9b8c1ac5338f60c.1694613528.git.geert@linux-m68k.org
This commit is contained in:
parent
f9d49824c0
commit
66ed28ea09
|
|
@ -25,15 +25,14 @@ prom_printf(char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
char ch, *bptr;
|
char ch, *bptr;
|
||||||
int i;
|
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
|
||||||
#ifdef CONFIG_KGDB
|
#ifdef CONFIG_KGDB
|
||||||
ppbuf[0] = 'O';
|
ppbuf[0] = 'O';
|
||||||
i = vsprintf(ppbuf + 1, fmt, args) + 1;
|
vsprintf(ppbuf + 1, fmt, args) + 1;
|
||||||
#else
|
#else
|
||||||
i = vsprintf(ppbuf, fmt, args);
|
vsprintf(ppbuf, fmt, args);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bptr = ppbuf;
|
bptr = ppbuf;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user