crypto: qat - Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 26 Jun 2015 18:30:11 +0000 (20:30 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Jun 2015 08:06:29 +0000 (16:06 +0800)
commit12a4bd3122747eae2941f0be38119affb52c2e12
tree01d164d7167c7d59a647a9fc1d6ac289650ec034
parent44a17ef872fa8f754626aa578c8d05301c905b86
crypto: qat - Deletion of unnecessary checks before two function calls

The functions kfree() and release_firmware() test whether their argument
is NULL and then return immediately.
Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_accel_engine.c
drivers/crypto/qat/qat_common/adf_transport.c