crypto: qat - fix problem with coalescing enable logic
authorTadeusz Struk <tadeusz.struk@intel.com>
Wed, 3 Dec 2014 05:08:48 +0000 (21:08 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Dec 2014 15:50:23 +0000 (23:50 +0800)
commitbc84b94a715f3505f5f5981af0ec0362aa3fe38b
treea23f88177d9f05c72b4a818d148e95a1c0871025
parent5a2bb93f599247e049f5ae06a573f1152987c572
crypto: qat - fix problem with coalescing enable logic

Fixed issue reported by Dan Carpenter

410          if (adf_get_cfg_int(accel_dev, "Accelerator0",
411  ADF_ETRMGR_COALESCING_ENABLED_FORMAT,
412                              bank_num, &coalesc_enabled) && coalesc_enabled)
This condition is reversed, so it only enables coalescing on error.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_transport.c