Skip to contentSkip to conversation

powerpc/BSR: Make use of the helper macro LIST_HEAD()

PATCH New Cai Huoqing 1 participant 1 message Feb 9, 2022 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/BSR: Make use of the helper macro LIST_HEAD()

Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code.

---
 drivers/char/bsr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/bsr.c +1 -1
index cce2af5df7b4..d5f943938427 100644
@@ -60,7 +60,7 @@ struct bsr_dev {
 };
 
 static unsigned total_bsr_devs;
-static struct list_head bsr_devs = LIST_HEAD_INIT(bsr_devs);
+static LIST_HEAD(bsr_devs);
 static struct class *bsr_class;
 static int bsr_major;
 
Signature · 1 line
2.25.1