diff options
| author | Eric Biggers <[email protected]> | 2020-07-08 09:39:43 -0700 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-07-16 21:49:05 +1000 |
| commit | 9d4cafa5a04aeba68cc12de47ffcd975079e2f83 (patch) | |
| tree | bcd185a9b96094033b07264cdde730c2210d5e74 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 5a7a0d9400677a5e88fdb362c4d32171384068f2 (diff) | |
ASoC: cros_ec_codec: use sha256() instead of open coding
Now that there's a function that calculates the SHA-256 digest of a
buffer in one step, use it instead of sha256_init() + sha256_update() +
sha256_final().
Also simplify the code by inlining calculate_sha256() into its caller
and switching a debug log statement to use %*phN instead of bin2hex().
Acked-by: Tzung-Bi Shih <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Cc: [email protected]
Cc: Ard Biesheuvel <[email protected]>
Cc: Cheng-Yi Chiang <[email protected]>
Cc: Enric Balletbo i Serra <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Tzung-Bi Shih <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions