]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8382f7aabfc45b33f29652d1bd975c4854258e27
tree01d164d7167c7d59a647a9fc1d6ac289650ec034
parentef5c9ef768ea4c4b3942afd92747d71f083fe85c
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