summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-08-30 11:39:15 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-09-06 10:57:23 +0300
commit56e6f77ebd31250757ffbdcbd9baa78ab27895a8 (patch)
tree98e874973cd880b4b48add45688058a2c00d933d /include/linux/debugobjects.h
parent1544344563376b2a2ae2af5af1db00d6410c18e0 (diff)
downloadlinux-56e6f77ebd31250757ffbdcbd9baa78ab27895a8.tar.xz
crypto: hisilicon/sec2 - Fix false-positive warning of uninitialised qp_ctx
Fix the false-positive warning of qp_ctx being unitialised in sec_request_init. The value of ctx_q_num defaults to 2 and is guaranteed to be non-zero. Thus qp_ctx is always initialised. However, the compiler is not aware of this constraint on ctx_q_num. Restructure the loop so that it is obvious to the compiler that ctx_q_num cannot be zero. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Longfang Liu <liulongfang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions