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: NArmin Wolf <W_Armin@gmx.de> Acked-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20211021190531.17379-3-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
Showing
想要评论请 注册 或 登录