Re: [PATCH 05/10] x86/mce/genpool: Make mce_gen_pool_create() return explicit error codes

From: Thomas Gleixner
Date: Sat Nov 02 2024 - 10:31:47 EST


On Thu, Oct 10 2024 at 23:31, Qiuxu Zhuo wrote:

> Make mce_gen_pool_create() return explicit error codes for better
> readability.

What's the point?

All error paths including gen_pool_add() return -ENOMEM.

The call site just cares about success or fail.

So this can simply be converted to bool and return true on success and
false otherwise.

Thanks,

tglx