misc: ocxl: use DEFINE_MUTEX() for mutex lock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 24 Dec 2020 13:24:46 +0000 (21:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jan 2021 13:40:10 +0000 (14:40 +0100)
commit22a9e57fccfea0cf9a066935dc6b81b866aaca55
tree68e2b64f81191b7cd6a7e0f5016d8b42319eb8d1
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
misc: ocxl: use DEFINE_MUTEX() for mutex lock

mutex lock can be initialized automatically with DEFINE_MUTEX()
rather than explicitly calling mutex_init().

Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201224132446.31286-1-zhengyongjun3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ocxl/file.c