OSDN Git Service

media: siano: use DEFINE_MUTEX() for mutex lock and LIST_HEAD for list head
authorYe Bin <yebin10@huawei.com>
Fri, 9 Apr 2021 09:51:44 +0000 (11:51 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 21 May 2021 13:08:02 +0000 (15:08 +0200)
commitca8519ddc4d7e27d941a50e310a0f6bcfafdc8a9
tree2441a7d6313a4ac5ad3ad16d0e7b7e645444147d
parent52518e513d6dbb71a9cd8f7a1b83b76fe6f8709c
media: siano: use DEFINE_MUTEX() for mutex lock and LIST_HEAD for list head

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/siano/smsdvb-main.c