Skip to content

Commit 74e37a4

Browse files
author
Myron Stowe
committed
cpu: Remove spurious NULL in attribute_group definition
JIRA: https://issues.redhat.com/browse/RHEL-85241 Upstream Status: e7240bd commit e7240bd Author: Thomas Weißschuh <linux@weissschuh.net> Date: Mon Nov 18 16:02:49 2024 +0100 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> Signed-off-by: Myron Stowe <mstowe@redhat.com>
1 parent 3d14ece commit 74e37a4

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
@@ -2867,7 +2867,6 @@ static struct attribute *cpuhp_cpu_attrs[] = {
28672867
static const struct attribute_group cpuhp_cpu_attr_group = {
28682868
.attrs = cpuhp_cpu_attrs,
28692869
.name = "hotplug",
2870-
NULL
28712870
};
28722871

28732872
static ssize_t states_show(struct device *dev,
@@ -2899,7 +2898,6 @@ static struct attribute *cpuhp_cpu_root_attrs[] = {
28992898
static const struct attribute_group cpuhp_cpu_root_attr_group = {
29002899
.attrs = cpuhp_cpu_root_attrs,
29012900
.name = "hotplug",
2902-
NULL
29032901
};
29042902

29052903
#ifdef CONFIG_HOTPLUG_SMT
@@ -3021,7 +3019,6 @@ static struct attribute *cpuhp_smt_attrs[] = {
30213019
static const struct attribute_group cpuhp_smt_attr_group = {
30223020
.attrs = cpuhp_smt_attrs,
30233021
.name = "smt",
3024-
NULL
30253022
};
30263023

30273024
static int __init cpu_smt_sysfs_init(void)

0 commit comments

Comments
 (0)