Re: [PATCH 1/1] lib: smbios: remove redundant next_header()

2023-12-26 Thread Simon Glass
On Fri, Dec 22, 2023 at 5:59 PM Heinrich Schuchardt wrote: > > next_header() and get_next_header() only differ in how the const attribute > is used. One function taking a const parameter and returning a non-const is > good enough. > > Fixes: 3d49ee8510d3 ("efi_loader: add SMBIOS table measurement"

Re: [PATCH 1/1] lib: smbios: remove redundant next_header()

2023-12-22 Thread Ilias Apalodimas
Hi Heinrich, On Fri, 22 Dec 2023 at 19:54, Heinrich Schuchardt wrote: > > next_header() and get_next_header() only differ in how the const attribute > is used. One function taking a const parameter and returning a non-const is > good enough. > > Fixes: 3d49ee8510d3 ("efi_loader: add SMBIOS table

[PATCH 1/1] lib: smbios: remove redundant next_header()

2023-12-22 Thread Heinrich Schuchardt
next_header() and get_next_header() only differ in how the const attribute is used. One function taking a const parameter and returning a non-const is good enough. Fixes: 3d49ee8510d3 ("efi_loader: add SMBIOS table measurement") Signed-off-by: Heinrich Schuchardt --- lib/smbios-parser.c | 11 ++-