efi/esrt: remove esre_attribute::store()
PATCH 1/1 efi/esrt: remove esre_attribute::store()
esre_attribute::store() is not needed since commit af97a77bc01c (efi:
Move some sysfs files to be read-only by root). Drop it.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by Jiri Slaby (SUSE) <[email protected]>
Cc Ard Biesheuvel <[email protected]>
--- drivers/firmware/efi/esrt.c | 2 -- 1 file changed, 2 deletions(-)
drivers/firmware/efi/esrt.c +0 -2
@@ -75,8 +75,6 @@ static LIST_HEAD(entry_list);struct esre_attribute {struct attribute attr;ssize_t (*show)(struct esre_entry *entry,char *buf); -ssize_t (*store)(struct esre_entry *entry, -const char *buf,size_t count); };static struct esre_entry *to_entry (struct kobject *kobj)
Signature · 1 line
2.47.1
Quoted 9 lines · Jiri Slaby (SUSE)
esre_attribute::store()is not needed since commitaf97a77bc01c(efi:
Move some sysfs files to be read-only by root). Drop it.Found by https://github.com/jirislaby/clang-struct.
Signed-off-by Jiri Slaby (SUSE) <[email protected]>Cc Ard Biesheuvel <[email protected]>
Queued up, thanks.
Quoted 20 lines
--- drivers/firmware/efi/esrt.c | 2 -- 1 file changed, 2 deletions(-)drivers/firmware/efi/esrt.c +0
-3@@ -75,8 +75,6 @@ static LIST_HEAD(entry_list);struct esre_attribute {struct attribute attr;ssize_t (*show)(struct esre_entry *entry,char *buf); -ssize_t (*store)(struct esre_entry *entry, -const char *buf,size_t count); };static struct esre_entry *to_entry (struct kobject *kobj) --2.47.1