]> Gentwo Git Trees - linux/.git/commit
Drivers: hv: vmbus: Clean up sscanf format specifier in target_cpu_store()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 17 Sep 2025 08:59:31 +0000 (01:59 -0700)
committerWei Liu <wei.liu@kernel.org>
Tue, 30 Sep 2025 23:30:56 +0000 (23:30 +0000)
commitfd9be098f7eb4bb6b1768145fd48e74a292e3730
tree7d97afd592be682cbb280882c723a619f61dbaa3
parent4691db0704ac1c266377c99f00288a014fdb7af1
Drivers: hv: vmbus: Clean up sscanf format specifier in target_cpu_store()

The target_cpu_store() function parses the target CPU from the sysfs
buffer using sscanf(). The format string currently uses "%uu", which
is redundant. The compiler ignores the extra "u", so there is no
incorrect parsing at runtime.

Update the format string to use "%u" for clarity and consistency.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c