aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2023-02-01 20:32:07 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-02-10 17:20:19 +0800
commit3b9d902153f31998a30b0cf4a0aeb090a05005d3 (patch)
treeb0c9a2c7cfcd72bdc7e0d67929f47f7eb34bb95a /drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
parentcrypto: atmel - Drop unused id parameter from atmel_i2c_probe() (diff)
downloadwireguard-linux-3b9d902153f31998a30b0cf4a0aeb090a05005d3.tar.xz
wireguard-linux-3b9d902153f31998a30b0cf4a0aeb090a05005d3.zip
crypto: arm64/sm4-ccm - Rewrite skcipher walker loop
The fact that an error in the skcipher walker API are indicated not only by a non-zero return value, but also by the fact that walk->nbytes is zero, causes the layout of the skcipher walker loop to be sufficiently different from the usual layout, which is not a problem in itself, but it is likely to cause reading confusion and difficulty in code maintenance. This patch rewrites skcipher walker loop, and separates the last chunk cryption from the loop to avoid wrong calls to the skcipher walker API. In addition to following the usual convention of checking walk->nbytes, it also makes the loop execute logic clearer and easier to understand. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c')
0 files changed, 0 insertions, 0 deletions