diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-11 11:19:06 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2025-09-27 11:37:00 -0400 |
commit | 5967c08545e9d591e06c205b74fd25f8a702029c (patch) | |
tree | d64f5bf5115958bf2f9f8aa5e52783168760bee3 /rust/helpers/build_assert.c | |
parent | d4e99db3d942c8099006f3b7536bc52f766b475a (diff) |
Bluetooth: btintel_pcie: Use strscpy() instead of strscpy_pad()
kzalloc() already zero-initializes the destination buffer 'data', making
strscpy() sufficient for safely copying 'name'. The additional
NUL-padding performed by strscpy_pad() is unnecessary.
Add a new local variable to store the length of 'name' and reuse it
instead of recalculating the same length.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions