]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/vsprintf: Unify FORMAT_STATE_NUM handlers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 Nov 2025 08:31:40 +0000 (09:31 +0100)
committerPetr Mladek <pmladek@suse.com>
Mon, 24 Nov 2025 15:10:11 +0000 (16:10 +0100)
commita9f349e3c0bebe7ae97750b32a72f452bdf707e2
tree69d733f0361eb21af7949e25924ffa1b309458bd
parent376c18f30e226854062ff0a6eebc6af4ea62456b
lib/vsprintf: Unify FORMAT_STATE_NUM handlers

We have two almost identical pieces that handle FORMAT_STATE_NUM case.
The differences are:
- redundant {} for one-line if-else conditional
- missing blank line after variable definitions
- inverted conditional

Unify the style of two.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20251120083140.3478507-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c