diff options
author | Eric Biggers <ebiggers@kernel.org> | 2025-06-30 09:06:33 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@kernel.org> | 2025-07-04 10:18:52 -0700 |
commit | 85de1929e17e71fafc51473ba1d14101e80180f5 (patch) | |
tree | b7b020bb78ec5f729bb473ff6154049930820373 /scripts/lib/kdoc/kdoc_output.py | |
parent | 1cf5cdf8d2ae3a55cc4890c02feb5da18e423e5d (diff) |
cxl/test: Simplify fw_buf_checksum_show()
First, just use sha256() instead of a sequence of sha256_init(),
sha256_update(), and sha256_final(). The result is the same.
Second, use *phN instead of open-coding the conversion of bytes to hex.
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630160645.3198-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions