aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAllan, Bruce W <bruce.w.allan@intel.com>2015-03-31 12:30:50 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-01 10:22:48 -0400
commit724c76ce30aeb7699561f7dd4c8bd63d30f65938 (patch)
tree95e7886e6a6e790d072ae9aab3503fb5bdd27964 /drivers/crypto
parentaf6f2a7bb56cfb9face2155c6c823a3b5a7cb1ab (diff)
crypto: qat - fix checkpatch COMPARISON_TO_NULL issue
CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "!device_reset_wq" Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/qat/qat_common/adf_aer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c
index 82e23b821f71..2dbc733b8ab2 100644
--- a/drivers/crypto/qat/qat_common/adf_aer.c
+++ b/drivers/crypto/qat/qat_common/adf_aer.c
@@ -239,7 +239,7 @@ EXPORT_SYMBOL_GPL(adf_disable_aer);
239int adf_init_aer(void) 239int adf_init_aer(void)
240{ 240{
241 device_reset_wq = create_workqueue("qat_device_reset_wq"); 241 device_reset_wq = create_workqueue("qat_device_reset_wq");
242 return (device_reset_wq == NULL) ? -EFAULT : 0; 242 return !device_reset_wq ? -EFAULT : 0;
243} 243}
244 244
245void adf_exit_aer(void) 245void adf_exit_aer(void)