crypto: qat - fix checkpatch COMPARISON_TO_NULL issue
authorAllan, Bruce W <bruce.w.allan@intel.com>
Tue, 31 Mar 2015 16:30:50 +0000 (09:30 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Apr 2015 14:22:48 +0000 (22:22 +0800)
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>
drivers/crypto/qat/qat_common/adf_aer.c

index 82e23b821f71eeecd4e583853debef635591f93d..2dbc733b8ab2483e8790d26a2f509239c681573d 100644 (file)
@@ -239,7 +239,7 @@ EXPORT_SYMBOL_GPL(adf_disable_aer);
 int adf_init_aer(void)
 {
        device_reset_wq = create_workqueue("qat_device_reset_wq");
-       return (device_reset_wq == NULL) ? -EFAULT : 0;
+       return !device_reset_wq ? -EFAULT : 0;
 }
 
 void adf_exit_aer(void)