Skip to content

Commit a1aea76

Browse files
andy-shevpmladek
authored andcommitted
vsnprintf: Drop unused const char fmt * in va_format()
va_format() doesn't use original formatting string, drop that argument as it's done elsewhere in similar cases. Suggested-by: Rasmus Villemoes <ravi@prevas.dk> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Kees Cook <kees@kernel.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20250321144822.324050-6-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 7bf819a commit a1aea76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vsprintf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ char *escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec,
17001700
}
17011701

17021702
static char *va_format(char *buf, char *end, struct va_format *va_fmt,
1703-
struct printf_spec spec, const char *fmt)
1703+
struct printf_spec spec)
17041704
{
17051705
va_list va;
17061706

@@ -2469,7 +2469,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
24692469
case 'U':
24702470
return uuid_string(buf, end, ptr, spec, fmt);
24712471
case 'V':
2472-
return va_format(buf, end, ptr, spec, fmt);
2472+
return va_format(buf, end, ptr, spec);
24732473
case 'K':
24742474
return restricted_pointer(buf, end, ptr, spec);
24752475
case 'N':

0 commit comments

Comments
 (0)