Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Qinglang Miao and committed by
Herbert Xu
c4c75fcb 0f5e8323

-2
-2
drivers/crypto/qat/qat_common/adf_ctl_drv.c
··· 416 416 417 417 static int __init adf_register_ctl_device_driver(void) 418 418 { 419 - mutex_init(&adf_ctl_lock); 420 - 421 419 if (adf_chr_drv_create()) 422 420 goto err_chr_dev; 423 421