diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2016-05-11 16:21:29 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-13 05:30:18 -0400 |
commit | 256b1cfb9a346bb4808cd27b7b8f9b120f96491e (patch) | |
tree | 640ed835e07ced95ebfaf9f181ba372c74283237 | |
parent | e930c765ca5c6b039cd22ebfb4504ea7b5dab43d (diff) |
crypto: qat - change the adf_ctl_stop_devices to void
Change the adf_ctl_stop_devices to a void function.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_ctl_drv.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c index db21b499cc1d..abc7a7f64d64 100644 --- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c +++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c | |||
@@ -270,10 +270,9 @@ static int adf_ctl_is_device_in_use(int id) | |||
270 | return 0; | 270 | return 0; |
271 | } | 271 | } |
272 | 272 | ||
273 | static int adf_ctl_stop_devices(uint32_t id) | 273 | static void adf_ctl_stop_devices(uint32_t id) |
274 | { | 274 | { |
275 | struct adf_accel_dev *accel_dev; | 275 | struct adf_accel_dev *accel_dev; |
276 | int ret = 0; | ||
277 | 276 | ||
278 | list_for_each_entry(accel_dev, adf_devmgr_get_head(), list) { | 277 | list_for_each_entry(accel_dev, adf_devmgr_get_head(), list) { |
279 | if (id == accel_dev->accel_id || id == ADF_CFG_ALL_DEVICES) { | 278 | if (id == accel_dev->accel_id || id == ADF_CFG_ALL_DEVICES) { |
@@ -298,7 +297,6 @@ static int adf_ctl_stop_devices(uint32_t id) | |||
298 | adf_dev_shutdown(accel_dev); | 297 | adf_dev_shutdown(accel_dev); |
299 | } | 298 | } |
300 | } | 299 | } |
301 | return ret; | ||
302 | } | 300 | } |
303 | 301 | ||
304 | static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd, | 302 | static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd, |
@@ -327,9 +325,8 @@ static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd, | |||
327 | pr_info("QAT: Stopping acceleration device qat_dev%d.\n", | 325 | pr_info("QAT: Stopping acceleration device qat_dev%d.\n", |
328 | ctl_data->device_id); | 326 | ctl_data->device_id); |
329 | 327 | ||
330 | ret = adf_ctl_stop_devices(ctl_data->device_id); | 328 | adf_ctl_stop_devices(ctl_data->device_id); |
331 | if (ret) | 329 | |
332 | pr_err("QAT: failed to stop device.\n"); | ||
333 | out: | 330 | out: |
334 | kfree(ctl_data); | 331 | kfree(ctl_data); |
335 | return ret; | 332 | return ret; |