Signed-off-by: Sven Eckelmann sven@narfation.org --- compat.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/compat.c b/compat.c index 34b27a1..70de376 100644 --- a/compat.c +++ b/compat.c @@ -909,11 +909,10 @@ int bat_vscnprintf(char *buf, size_t size, const char *fmt, va_list args) asmlinkage int bat_printk(const char *fmt, ...) { va_list args; - int r; char buf[256];
va_start(args, fmt); - r = bat_vsnprintf(buf, sizeof(buf), fmt, args); + bat_vsnprintf(buf, sizeof(buf), fmt, args); va_end(args);
return printk("%s", buf);