Re: [PATCH] sched: core: Remove unnecessary ‘NULL’ values from core_rq

From: Markus Elfring
Date: Tue May 28 2024 - 04:04:34 EST


> core_rq is assigned first, so it does not need to initialize the
> assignment.

* Would a wording approach (like the following) be a bit nicer?

The variable “core_rq” will eventually be set to an appropriate pointer
a bit later. Thus omit the explicit initialisation at the beginning.

* How do you think about to use the summary phrase
“Delete an unnecessary initialisation in sched_core_cpu_deactivate()”?


Regards,
Markus