[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20221003211334.5CBB1C433D6@smtp.kernel.org>
Date: Mon, 03 Oct 2022 14:13:32 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Michael Turquette <mturquette@...libre.com>,
Yihao Han <hanyihao@...o.com>, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: kernel@...o.com, Yihao Han <hanyihao@...o.com>
Subject: Re: [PATCH] clk: clk-xgene: simplify if-if to if-else
Quoting Yihao Han (2022-04-08 06:06:09)
> Replace `if (!pclk->param.csr_reg)` with `else` for simplification
> and add curly brackets according to the kernel coding style:
>
> "Do not unnecessarily use braces where a single statement will do."
>
> ...
>
> "This does not apply if only one branch of a conditional statement is
> a single statement; in the latter case use braces in both branches"
>
> Please refer to:
> https://www.kernel.org/doc/html/v5.17-rc8/process/coding-style.html
>
> Signed-off-by: Yihao Han <hanyihao@...o.com>
> ---
Applied to clk-next
Powered by blists - more mailing lists