Commit 724c76ce authored by Allan, Bruce W's avatar Allan, Bruce W Committed by Herbert Xu

crypto: qat - fix checkpatch COMPARISON_TO_NULL issue

CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written
"!device_reset_wq"
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent af6f2a7b
...@@ -239,7 +239,7 @@ EXPORT_SYMBOL_GPL(adf_disable_aer); ...@@ -239,7 +239,7 @@ EXPORT_SYMBOL_GPL(adf_disable_aer);
int adf_init_aer(void) int adf_init_aer(void)
{ {
device_reset_wq = create_workqueue("qat_device_reset_wq"); 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) void adf_exit_aer(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment