[PATCH v3 23/31] clk: mediatek: mux: Reverse check for existing clk to reduce nesting level
Stephen Boyd
sboyd at kernel.org
Thu Feb 17 12:27:38 PST 2022
Quoting Chen-Yu Tsai (2022-02-08 04:40:26)
> 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 at chromium.org>
> Reviewed-by: Miles Chen <miles.chen at mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
> ---
Applied to clk-next
More information about the Linux-mediatek
mailing list