crypto: qat - correctly type a boolean
authorAllan, Bruce W <bruce.w.allan@intel.com>
Fri, 9 Jan 2015 19:55:04 +0000 (11:55 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Jan 2015 11:30:45 +0000 (22:30 +1100)
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_init.c

index a3afa0ff9ec679c8c79fc9d111b44de2a8239994..edbf85af4ea542c917cc72e77a8a239987d254ba 100644 (file)
@@ -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)) {
@@ -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);
                }
        }