Re: [PATCH] initcall: break loop immediately on failure

2024-02-20 Thread Dan Carpenter
On Mon, Feb 19, 2024 at 06:35:03PM +, Caleb Connolly wrote: > The current ordering always results in func pointing to the next > function in the init_sequence. e.g. if fdtdec_setup() fails, ret will > be set to the error code, then func will be updated to point to > initf_malloc(), only then is

[PATCH] initcall: break loop immediately on failure

2024-02-19 Thread Caleb Connolly
The current ordering always results in func pointing to the next function in the init_sequence. e.g. if fdtdec_setup() fails, ret will be set to the error code, then func will be updated to point to initf_malloc(), only then is ret checked and the loop broken. The end result of this is that the "in