diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2024-02-13 12:20:47 +0100 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-03-27 18:26:57 +0100 |
commit | 9186695ef709933eee8fc96a706bcbd6aec1b396 (patch) | |
tree | 8e9583a1d90dbcbbb65f6e41df7da346d70175c3 /drivers/edac/edac_device.h | |
parent | 3667a35a50f4fde8400ab988340a6f84aaebda7b (diff) | |
download | linux-stable-9186695ef709933eee8fc96a706bcbd6aec1b396.tar.gz linux-stable-9186695ef709933eee8fc96a706bcbd6aec1b396.tar.bz2 linux-stable-9186695ef709933eee8fc96a706bcbd6aec1b396.zip |
EDAC/device: Remove edac_dev_sysfs_block_attribute::store()
No one uses this store hook (both BLOCK_ATTR() pass NULL). It actually
never was since its addition in
fd309a9d8e63 ("drivers/edac: fix leaf sysfs attribute")
so drop it.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240213112051.27715-4-jirislaby@kernel.org
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to 'drivers/edac/edac_device.h')
-rw-r--r-- | drivers/edac/edac_device.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/edac/edac_device.h b/drivers/edac/edac_device.h index c4704b5b1e9f..a39752432c90 100644 --- a/drivers/edac/edac_device.h +++ b/drivers/edac/edac_device.h @@ -95,16 +95,13 @@ struct edac_dev_sysfs_attribute { * * used in leaf 'block' nodes for adding controls/attributes * - * each block in each instance of the containing control structure - * can have an array of the following. The show and store functions - * will be filled in with the show/store function in the - * low level driver. + * each block in each instance of the containing control structure can + * have an array of the following. The show function will be filled in + * with the show function in the low level driver. */ struct edac_dev_sysfs_block_attribute { struct attribute attr; ssize_t (*show)(struct kobject *, struct attribute *, char *); - ssize_t (*store)(struct kobject *, struct attribute *, - const char *, size_t); }; /* device block control structure */ |