Replace the ternary operator with a direct boolean comparison to improve code readability and maintainability. The logic remains unchanged. Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@xxxxxxxxxxxxxx> --- v1->v2: - New patch drivers/clk/renesas/rzv2h-cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/rzv2h-cpg.c b/drivers/clk/renesas/rzv2h-cpg.c index 35c5ff38e231e..0e8800906b89e 100644 --- a/drivers/clk/renesas/rzv2h-cpg.c +++ b/drivers/clk/renesas/rzv2h-cpg.c @@ -867,7 +867,7 @@ static int __rzv2h_cpg_assert(struct reset_controller_dev *rcdev, mask = BIT(monbit); ret = readl_poll_timeout_atomic(priv->base + reg, value, - assert ? (value & mask) : !(value & mask), + assert == !!(value & mask), 10, 200); if (ret && !assert) { value = mask << 16; -- 2.43.0