diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-04 23:24:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-11-24 23:26:04 -0500 |
commit | 38ba2f11d9ce0e7c9444e57cb1bb418d1979534b (patch) | |
tree | db7fabdc5a40ba440e2a095fe62b4f488c5fb28f /fs/binfmt_elf.c | |
parent | e92edb85d87e9f8c8bead9cdb7cb2da4b51fd7f8 (diff) | |
download | lwn-38ba2f11d9ce0e7c9444e57cb1bb418d1979534b.tar.gz lwn-38ba2f11d9ce0e7c9444e57cb1bb418d1979534b.zip |
[elf] get rid of get_note_info_size()
it's trivial now...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 3758a617c9d8..65d2d2ba4d9e 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1946,11 +1946,6 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, return 1; } -static size_t get_note_info_size(struct elf_note_info *info) -{ - return info->size; -} - /* * Write all the notes for each thread. When writing the first thread, the * process-wide notes are interleaved after the first thread-specific note. @@ -2068,7 +2063,7 @@ static int elf_core_dump(struct coredump_params *cprm) /* Write notes phdr entry */ { - size_t sz = get_note_info_size(&info); + size_t sz = info.size; /* For cell spufs */ sz += elf_coredump_extra_notes_size(); |