Skip to content

Commit

Permalink
crypto: qat - fix checkpatch COMPARISON_TO_NULL issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan, Bruce W authored and Herbert Xu committed Apr 1, 2015
1 parent af6f2a7 commit 724c76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/qat/qat_common/adf_aer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 724c76c

Please sign in to comment.