diff mbox series

[-next] sh: maple: Remove unnecessary INIT_LIST_HEAD()

Message ID 20210511115329.3804751-1-yangyingliang@huawei.com (mailing list archive)
State New
Headers show
Series [-next] sh: maple: Remove unnecessary INIT_LIST_HEAD() | expand

Commit Message

Yang Yingliang May 11, 2021, 11:53 a.m. UTC
The list_head maple_waitq and maple_sentq are
initialized statically. It is unnecessary to
initialize by INIT_LIST_HEAD().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/sh/maple/maple.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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;