Re: [PATCH v2 23/31] clk: mediatek: mux: Reverse check for existing clk to reduce nesting level

From: AngeloGioacchino Del Regno
Date: Thu Feb 03 2022 - 04:49:28 EST


Il 02/02/22 14:48, Chen-Yu Tsai ha scritto:
The clk registration code here currently does:

if (IS_ERR_OR_NULL(clk_data->clks[mux->id])) {
... do clk registration ...
}

This extra level of nesting wastes screen real estate.

Reduce the nesting level by reversing the conditional shown above.
Other than that, functionality is not changed.

Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>
Reviewed-by: Miles Chen <miles.chen@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>