Re: [PATCH] fs/resctrl: Optimize code in rdt_get_tree()
From: James Morse
Date: Fri Jun 13 2025 - 12:57:53 EST
Hello!
On 13/06/2025 08:37, Shaopeng Tan wrote:
> schemata_list_destroy() has to be called if schemata_list_create() fails.
>
> rdt_get_tree() calls schemata_list_destroy() in two different ways:
> directly if schemata_list_create() itself fails and
> on the exit path via the out_schemata_free goto label.
>
> Remove schemata_list_destroy() call on schemata_list_create() failure.
> Use existing out_schemata_free goto label instead.
Reviewed-by: James Morse <james.morse@xxxxxxx>
Thanks,
James