Re: [PATCH] power: cpupower: utils: Optimize print_online_cpus and print_offline_cpus function

From: Shuah Khan
Date: Wed Oct 12 2022 - 11:40:09 EST


On 10/12/22 04:10, Li kunyu wrote:
1. Remove the initialization assignment of variables, and they will be
assigned first.
2. Remove the mandatory conversion of returned value of malloc function,
which returns void* type.

Signed-off-by: Li kunyu <kunyu@xxxxxxxxxxxx>

Can you tell me more about why this change is needed and how you determined
the need for this change?

thanks,
-- Shuah