linux/drivers/crypto/hisilicon
Tom Rix c5d692a233 crypto: hisilicon - cleanup warning in qm_get_qos_value()
Building with clang static analysis returns this warning:

qm.c:4382:11: warning: The left operand of '==' is a garbage value
        if (*val == 0 || *val > QM_QOS_MAX_VAL || ret) {
            ~~~~ ^

The call to qm_qos_value_init() can return an error without setting
*val.  So check ret before checking *val.

Fixes: 72b010dc33 ("crypto: hisilicon/qm - supports writing QoS int the host")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-12-31 18:10:56 +11:00
..
hpre crypto: hisilicon/hpre - fix memory leak in hpre_curve25519_src_init() 2021-12-17 16:59:48 +11:00
sec crypto: hisilicon/sec - use the correct print format 2021-04-16 21:16:33 +10:00
sec2 crypto: hisilicon - modify the value of engine type rate 2021-11-26 16:25:17 +11:00
trng crypto: hisilicon/trng - add version to adapt new algorithm 2021-04-16 21:16:31 +10:00
zip crypto: hisilicon/zip - add new algorithms for uacce device 2021-12-24 14:18:21 +11:00
Kconfig crypto: hisilicon/hpre - fix Kconfig 2021-03-26 20:15:57 +11:00
Makefile crypto: hisilicon/trng - add HiSilicon TRNG driver support 2020-11-27 17:13:43 +11:00
qm.c crypto: hisilicon - cleanup warning in qm_get_qos_value() 2021-12-31 18:10:56 +11:00
qm.h crypto: hisilicon - support runtime PM for accelerator device 2021-08-21 15:44:58 +08:00
sgl.c crypto: hisilicon/sgl - fix the sg buf unmap 2021-04-16 21:16:34 +10:00