OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4044fe5
)
powerpc/BSR: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:24:50 +0000
(11:24 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 11:10:15 +0000
(12:10 +0100)
Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Link:
https://lore.kernel.org/r/20220209032450.37849-1-cai.huoqing@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/bsr.c
patch
|
blob
|
history
diff --git
a/drivers/char/bsr.c
b/drivers/char/bsr.c
index
cce2af5
..
d5f9439
100644
(file)
--- a/
drivers/char/bsr.c
+++ b/
drivers/char/bsr.c
@@
-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;