hwmon: (dell-smm) Use strscpy_pad()
authorArmin Wolf <W_Armin@gmx.de>
Thu, 21 Oct 2021 19:05:28 +0000 (21:05 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 21 Oct 2021 20:14:27 +0000 (13:14 -0700)
commit38c5b0dd7d3092c24fc3dbd9ca963fd0e11752f5
tree571823c2fe23b4dbd043d1533b6f89f458e62465
parent6105870f794ded0306dbff4ab017063e4d0f631a
hwmon: (dell-smm) Use strscpy_pad()

Using strscpy_pad() allows for fewer memory accesses
since memset() will not unconditionally zero-out
the whole buffer.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Acked-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20211021190531.17379-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c