lkml.org 
[lkml]   [2022]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sh: maple: remove useless INIT_LIST_HEAD()
Date
The list_head maple_waitq & maple_sentq are initialized statically by
LIST_HEAD(). It is unnecessary to initialize by INIT_LIST_HEAD(). Drop
them.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
---
drivers/sh/maple/maple.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/sh/maple/maple.c b/drivers/sh/maple/maple.c
index e24e220e56ee..44f00d7cc669 100644
--- a/drivers/sh/maple/maple.c
+++ b/drivers/sh/maple/maple.c
@@ -839,9 +839,6 @@ static int __init maple_bus_init(void)
goto cleanup_bothirqs;
}

- INIT_LIST_HEAD(&maple_waitq);
- INIT_LIST_HEAD(&maple_sentq);
-
/* setup maple ports */
for (i = 0; i < MAPLE_PORTS; i++) {
checked[i] = false;
--
2.7.4
\
 
 \ /
  Last update: 2022-05-11 04:54    [W:0.256 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site