Skip to content

Commit e7240bd

Browse files
t-8chgregkh
authored andcommitted
cpu: Remove spurious NULL in attribute_group definition
This NULL value is most-likely a copy-paste error from an array definition. The NULL doesn't have any effect. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20241118-sysfs-const-attribute_group-fixes-v1-3-48e0b0ad8cba@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b22fd46 commit e7240bd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/cpu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,7 +2866,6 @@ static struct attribute *cpuhp_cpu_attrs[] = {
28662866
static const struct attribute_group cpuhp_cpu_attr_group = {
28672867
.attrs = cpuhp_cpu_attrs,
28682868
.name = "hotplug",
2869-
NULL
28702869
};
28712870

28722871
static ssize_t states_show(struct device *dev,
@@ -2898,7 +2897,6 @@ static struct attribute *cpuhp_cpu_root_attrs[] = {
28982897
static const struct attribute_group cpuhp_cpu_root_attr_group = {
28992898
.attrs = cpuhp_cpu_root_attrs,
29002899
.name = "hotplug",
2901-
NULL
29022900
};
29032901

29042902
#ifdef CONFIG_HOTPLUG_SMT
@@ -3020,7 +3018,6 @@ static struct attribute *cpuhp_smt_attrs[] = {
30203018
static const struct attribute_group cpuhp_smt_attr_group = {
30213019
.attrs = cpuhp_smt_attrs,
30223020
.name = "smt",
3023-
NULL
30243021
};
30253022

30263023
static int __init cpu_smt_sysfs_init(void)

0 commit comments

Comments
 (0)