]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: net: use DEFINE_MUTEX() for mutex lock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 24 Dec 2020 13:25:19 +0000 (21:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Dec 2020 14:09:28 +0000 (15:09 +0100)
commitdff95be8140aa17defaf7dd7d0520d08e7111b60
treebd85db98d16dcbb5d75e728baef6dc7c9c3bfba5
parent6458de721c9c2c07646379ded47d3f41e2a84153
staging: most: net: use DEFINE_MUTEX() for mutex lock

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

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201224132519.31504-1-zhengyongjun3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/net/net.c