Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: samsung: Fix build error

Fixes the following build error due to a typo introduced
by commit e4ac92df27 ("serial: samsung: Neaten dbg uses"):
drivers/tty/serial/samsung.c:69:26: error: ‘buf’ undeclared (first use in this function)

Reported-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sachin Kamat and committed by
Greg Kroah-Hartman
a859c8b2 7171511e

+1 -1
+1 -1
drivers/tty/serial/samsung.c
··· 66 66 char buff[256]; 67 67 68 68 va_start(va, fmt); 69 - vscnprintf(buff, sizeof(buf), fmt, va); 69 + vscnprintf(buff, sizeof(buff), fmt, va); 70 70 va_end(va); 71 71 72 72 printascii(buff);