]> git.baikalelectronics.ru Git - kernel.git/commit
clk: clk-xgene: simplify if-if to if-else
authorYihao Han <hanyihao@vivo.com>
Fri, 8 Apr 2022 13:06:09 +0000 (06:06 -0700)
committerStephen Boyd <sboyd@kernel.org>
Mon, 3 Oct 2022 21:13:29 +0000 (14:13 -0700)
commitb7569c6b9da36ec259bf49c6697049ea4cf2c28b
tree0e6c4f5707ecf33ec59b8c6c4dcbfb90d83d2a2d
parent19a0b6da425942f94357f8d823f5d959454265b7
clk: clk-xgene: simplify if-if to if-else

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@vivo.com>
Link: https://lore.kernel.org/r/20220408130617.14963-1-hanyihao@vivo.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-xgene.c