Re: [PATCH] efi: remove unreachable code in read_file()

2025-08-18 Thread Dmytro Prokopchuk1
On 8/14/25 11:23, Jan Beulich wrote: > On 12.08.2025 21:17, Dmytro Prokopchuk1 wrote: >> MISRA C Rule 2.1 states: "A project shall not contain unreachable code." >> >> Function `PrintErrMesg(const CHAR16*, EFI_STATUS)` isn't intended to return >> control to its caller. At the end, it calls `blexi

Re: [PATCH] efi: remove unreachable code in read_file()

2025-08-14 Thread Jan Beulich
On 12.08.2025 21:17, Dmytro Prokopchuk1 wrote: > MISRA C Rule 2.1 states: "A project shall not contain unreachable code." > > Function `PrintErrMesg(const CHAR16*, EFI_STATUS)` isn't intended to return > control to its caller. At the end, it calls `blexit()`, which, in turn, > invokes the `__built

[PATCH] efi: remove unreachable code in read_file()

2025-08-12 Thread Dmytro Prokopchuk1
MISRA C Rule 2.1 states: "A project shall not contain unreachable code." Function `PrintErrMesg(const CHAR16*, EFI_STATUS)` isn't intended to return control to its caller. At the end, it calls `blexit()`, which, in turn, invokes the `__builtin_unreachable()` function, making subsequent return stat