crypto: qat - cleanup coccicheck warning - NULL check before freeing functions
commitfdb4c0ad3e6c35a51544bb7e5553c10433e50b85
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 15 Oct 2014 18:33:21 +0000 (15 11:33 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:49:38 +0000 (24 22:49 +0800)
tree09b379367540dd5ba529c5886a4261e78a8f77e8
parent8c4cef464b90b1638ff01a922d6a34095cc09c0c
crypto: qat - cleanup coccicheck warning - NULL check before freeing functions

Analyzing with coccinelle MODE=report...

Please check for false positives in the output before submitting a patch.
When using "patch" mode, carefully review the patch before submitting it.

drivers/crypto/qat/qat_dh895xcc/adf_isr.c:191:3-8: WARNING: NULL check
before freeing functions like kfree, debugfs_remove,
debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider
reorganizing relevant code to avoid passing NULL values.

drivers/crypto/qat/qat_dh895xcc/adf_isr.c:208:3-8: WARNING: NULL check
before freeing functions like kfree, debugfs_remove,
debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider
reorganizing relevant code to avoid passing NULL values.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_dh895xcc/adf_isr.c