Skip to content

Commit 3667a35

Browse files
Jiri Slaby (SUSE)bp3tk0v
authored andcommitted
EDAC/device: Remove edac_dev_sysfs_block_attribute::{block,value}
They're unused. And they were never used since their addition in fd309a9 ("drivers/edac: fix leaf sysfs attribute") Drop it. Found by https://github.com/jirislaby/clang-struct. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov (AMD) <[email protected]>
1 parent f5ca0d5 commit 3667a35

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

drivers/edac/edac_device.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ edac_device_alloc_ctl_info(unsigned pvt_sz, char *dev_name, unsigned nr_instance
162162
attrib->show = attrib_spec[attr].show;
163163
attrib->store = attrib_spec[attr].store;
164164

165-
attrib->block = blk; /* up link */
166-
167165
edac_dbg(4, "alloc-attrib=%p attrib_name='%s' attrib-spec=%p spec-name=%s\n",
168166
attrib, attrib->attr.name,
169167
&attrib_spec[attr],

drivers/edac/edac_device.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,12 @@ struct edac_dev_sysfs_attribute {
9999
* can have an array of the following. The show and store functions
100100
* will be filled in with the show/store function in the
101101
* low level driver.
102-
*
103-
* The 'value' field will be the actual value field used for
104-
* counting
105102
*/
106103
struct edac_dev_sysfs_block_attribute {
107104
struct attribute attr;
108105
ssize_t (*show)(struct kobject *, struct attribute *, char *);
109106
ssize_t (*store)(struct kobject *, struct attribute *,
110107
const char *, size_t);
111-
struct edac_device_block *block;
112-
113-
unsigned int value;
114108
};
115109

116110
/* device block control structure */

0 commit comments

Comments
 (0)