Skip to content

Commit c4c75fc

Browse files
Qinglang Miaoherbertx
authored andcommitted
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>
1 parent 0f5e832 commit c4c75fc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/crypto/qat/qat_common/adf_ctl_drv.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,6 @@ static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg)
416416

417417
static int __init adf_register_ctl_device_driver(void)
418418
{
419-
mutex_init(&adf_ctl_lock);
420-
421419
if (adf_chr_drv_create())
422420
goto err_chr_dev;
423421

0 commit comments

Comments
 (0)