summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-07-05 15:38:39 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2026-07-17 18:09:21 +1000
commit34fd0e7c90e9108b734c4e1d37041d871d83d5e9 (patch)
tree59dee6feaaa537f016a4788edd149c6f0c171895 /tools/perf/scripts/python
parentb73b71df4cb4ca241165ad31218c82dfe489147c (diff)
crypto: qat - use strscpy_pad to simplify adf_service_string_to_mask
Use strscpy_pad() to copy buf and zero-pad any trailing bytes instead of zero-initializing the local services buffer and then using strscpy() to copy into it. Also use the strscpy_pad() return value to detect string truncation instead of checking the caller-provided length. Remove the now-unused length parameters from adf_service_string_to_mask() and adf_parse_service_string(). Also remove the redundant strnlen() call in adf_get_service_mask(), which only computed the removed length argument. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions