crypto: cavium - Fix couple of static checker errors
authorGeorge Cherian <george.cherian@cavium.com>
Wed, 15 Feb 2017 12:42:19 +0000 (12:42 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 27 Feb 2017 10:09:37 +0000 (18:09 +0800)
commit9bd829041b704e5e501ad5f5a9374a63426763fd
tree2e4f1d2209f67d3052299f6721eaa4fdc2197aea
parent12cb3a1c4184f891d965d1f39f8cfcc9ef617647
crypto: cavium - Fix couple of static checker errors

Fix the following smatch errors
cptvf_reqmanager.c:333 do_post_process() warn: variable dereferenced
before check 'cptvf'
cptvf_main.c:825 cptvf_remove() error: we previously assumed 'cptvf'
could be null

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/cptvf_main.c
drivers/crypto/cavium/cpt/cptvf_reqmanager.c