mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
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>
This commit is contained in:
parent
52518e513d
commit
ca8519ddc4
@ -26,8 +26,8 @@ Copyright (C) 2006-2008, Uri Shkolnik
|
||||
|
||||
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
|
||||
|
||||
static struct list_head g_smsdvb_clients;
|
||||
static struct mutex g_smsdvb_clientslock;
|
||||
static LIST_HEAD(g_smsdvb_clients);
|
||||
static DEFINE_MUTEX(g_smsdvb_clientslock);
|
||||
|
||||
static u32 sms_to_guard_interval_table[] = {
|
||||
[0] = GUARD_INTERVAL_1_32,
|
||||
@ -1236,9 +1236,6 @@ static int __init smsdvb_module_init(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
INIT_LIST_HEAD(&g_smsdvb_clients);
|
||||
mutex_init(&g_smsdvb_clientslock);
|
||||
|
||||
smsdvb_debugfs_register();
|
||||
|
||||
rc = smscore_register_hotplug(smsdvb_hotplug);
|
||||
|
Loading…
Reference in New Issue
Block a user