diff options
author | Cai Huoqing <cai.huoqing@linux.dev> | 2022-02-09 11:24:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-25 12:10:15 +0100 |
commit | aef3125dd6db982cdeed0d3f1ba68211e44e6cde (patch) | |
tree | 7f389677bac72c307cda6c1744d65088c45131fe /drivers/char/bsr.c | |
parent | 4044fe5525adb65ce0ce9931b8f23fc3ab1aa758 (diff) | |
download | linux-stable-aef3125dd6db982cdeed0d3f1ba68211e44e6cde.tar.gz linux-stable-aef3125dd6db982cdeed0d3f1ba68211e44e6cde.tar.bz2 linux-stable-aef3125dd6db982cdeed0d3f1ba68211e44e6cde.zip |
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.
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>
Diffstat (limited to 'drivers/char/bsr.c')
-rw-r--r-- | drivers/char/bsr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index cce2af5df7b4..d5f943938427 100644 --- 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; |