crypto: qat - correctly type a boolean
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
22e4dda06d
commit
53bc0251b1
1 changed files with 3 additions and 2 deletions
|
@ -276,7 +276,8 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
|
||||||
{
|
{
|
||||||
struct service_hndl *service;
|
struct service_hndl *service;
|
||||||
struct list_head *list_itr;
|
struct list_head *list_itr;
|
||||||
int ret, wait = 0;
|
bool wait = false;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (!adf_dev_started(accel_dev) &&
|
if (!adf_dev_started(accel_dev) &&
|
||||||
!test_bit(ADF_STATUS_STARTING, &accel_dev->status)) {
|
!test_bit(ADF_STATUS_STARTING, &accel_dev->status)) {
|
||||||
|
@ -298,7 +299,7 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
clear_bit(accel_dev->accel_id, &service->start_status);
|
clear_bit(accel_dev->accel_id, &service->start_status);
|
||||||
} else if (ret == -EAGAIN) {
|
} else if (ret == -EAGAIN) {
|
||||||
wait = 1;
|
wait = true;
|
||||||
clear_bit(accel_dev->accel_id, &service->start_status);
|
clear_bit(accel_dev->accel_id, &service->start_status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue