Skip to content

Commit

Permalink
crypto: qat - correctly type a boolean
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Allan <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
bwallan authored and herbertx committed Jan 13, 2015
1 parent 22e4dda commit 53bc025
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/crypto/qat/qat_common/adf_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
{
struct service_hndl *service;
struct list_head *list_itr;
int ret, wait = 0;
bool wait = false;
int ret;

if (!adf_dev_started(accel_dev) &&
!test_bit(ADF_STATUS_STARTING, &accel_dev->status)) {
Expand All @@ -298,7 +299,7 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
if (!ret) {
clear_bit(accel_dev->accel_id, &service->start_status);
} else if (ret == -EAGAIN) {
wait = 1;
wait = true;
clear_bit(accel_dev->accel_id, &service->start_status);
}
}
Expand Down

0 comments on commit 53bc025

Please sign in to comment.