]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cavium - cpt_bind_vq_to_grp could return an error code
authorGeorge Cherian <george.cherian@cavium.com>
Tue, 14 Feb 2017 09:23:17 +0000 (09:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:50 +0000 (13:23 +0800)
commit6ecb7d62bf8ef34325fa55e8cf167610ed7abe83
treeebf1824341ff1e9660c89c80278b294297038dde
parent36b05efc1b5b62054232d5b8453782ee7ca4efaa
crypto: cavium - cpt_bind_vq_to_grp could return an error code

cpt_bind_vq_to_grp() could return an error code. However, it currently
returns a u8. This produce the static checker warning.

drivers/crypto/cavium/cpt/cptpf_mbox.c:70 cpt_bind_vq_to_grp() warn: signedness bug returning '(-22)'

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: George Cherian <george.cherian@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/cpt/cptpf_mbox.c