]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: qat - check return code of qat_hal_rd_rel_reg()
authorJack Xu <jack.xu@intel.com>
Mon, 17 May 2021 09:13:15 +0000 (05:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:43 +0000 (16:15 +0200)
commit536b11e382d888eaf2009f10171e986e37352d14
tree84e7ca4498749945ea10b8ad1e1894e902b3e3f0
parent0983e01de0ec33b7f2e63ad866d68090b003701c
crypto: qat - check return code of qat_hal_rd_rel_reg()

[ Upstream commit 96b57229209490c8bca4335b01a426a96173dc56 ]

Check the return code of the function qat_hal_rd_rel_reg() and return it
to the caller.

This is to fix the following warning when compiling the driver with
clang scan-build:

    drivers/crypto/qat/qat_common/qat_hal.c:1436:2: warning: 6th function call argument is an uninitialized value

Signed-off-by: Jack Xu <jack.xu@intel.com>
Co-developed-by: Zhehui Xiang <zhehui.xiang@intel.com>
Signed-off-by: Zhehui Xiang <zhehui.xiang@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/qat/qat_common/qat_hal.c