]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: u132-hcd: use DEFINE_MUTEX() for mutex lock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 5 Apr 2021 10:14:34 +0000 (18:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:02:30 +0000 (16:02 +0200)
commit4566a3d6180f53ebc0c25457928ee24c9a7e7867
treef28283142ad2bc491f1fcf6edcce0802ca028f8d
parent1c8a1ea8acdf5b4add223653866d513947f6aadc
usb: host: u132-hcd: 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: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20210405101434.14878-1-zhengyongjun3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/u132-hcd.c