eCryptfs: Use DEFINE_MUTEX() for mutex lock
authorYe Bin <yebin10@huawei.com>
Fri, 9 Apr 2021 09:51:42 +0000 (17:51 +0800)
committerTyler Hicks <code@tyhicks.com>
Mon, 19 Apr 2021 04:42:13 +0000 (04:42 +0000)
commit724fa86291d0df2e15c3654c4b5684c64bb1d49c
tree8406c620f69f6ee7cdeaa68559ddeab82f78339e
parentffbed072be00c1617e25396054f6f349befddffc
eCryptfs: Use DEFINE_MUTEX() for mutex lock

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
fs/ecryptfs/messaging.c