Commit 2f1e48d6 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] siano: just return 0 instead of using a var

Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent d8e8b40c
...@@ -2129,8 +2129,6 @@ int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num, ...@@ -2129,8 +2129,6 @@ int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num,
static int __init smscore_module_init(void) static int __init smscore_module_init(void)
{ {
int rc = 0;
INIT_LIST_HEAD(&g_smscore_notifyees); INIT_LIST_HEAD(&g_smscore_notifyees);
INIT_LIST_HEAD(&g_smscore_devices); INIT_LIST_HEAD(&g_smscore_devices);
kmutex_init(&g_smscore_deviceslock); kmutex_init(&g_smscore_deviceslock);
...@@ -2138,7 +2136,7 @@ static int __init smscore_module_init(void) ...@@ -2138,7 +2136,7 @@ static int __init smscore_module_init(void)
INIT_LIST_HEAD(&g_smscore_registry); INIT_LIST_HEAD(&g_smscore_registry);
kmutex_init(&g_smscore_registrylock); kmutex_init(&g_smscore_registrylock);
return rc; return 0;
} }
static void __exit smscore_module_exit(void) static void __exit smscore_module_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment