crypto: qat - remove unnecessary mutex_init()

The mutex adf_ctl_lock is initialized statically. It is
unnecessary to initialize by mutex_init().

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Qinglang Miao 2020-09-16 14:21:21 +08:00 committed by Herbert Xu
parent 0f5e832377
commit c4c75fcbd8
1 changed files with 0 additions and 2 deletions

View File

@ -416,8 +416,6 @@ static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg)
static int __init adf_register_ctl_device_driver(void)
{
mutex_init(&adf_ctl_lock);
if (adf_chr_drv_create())
goto err_chr_dev;