]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: qat - replace CHECK_STAT macro with static inline function
authorSuman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Tue, 1 Jul 2025 09:47:27 +0000 (10:47 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jul 2025 10:51:59 +0000 (20:51 +1000)
commit18126fdff42f6854123b3ddaf3b469a0cee80adb
tree7bc183f33bad5ce3ce35a1e77113c8e4e679e88c
parent7ea5ea3e58b037e0751c6406cea1e048892be4de
crypto: qat - replace CHECK_STAT macro with static inline function

The macro CHECK_STAT is used to check that all ring statuses match the
saved state during restoring the state of bank.

Replace the CHECK_STAT macro with the static inline function `check_stat()`
to improve type safety, readability, and debuggability.

This does not introduce any functional change.

Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c