[PATCH] imx9: scmi: Drop parenthesis around enable

Marek Vasut marek.vasut+renesas at mailbox.org
Sun Nov 2 18:34:37 CET 2025


The 'enable' is a single variable, there is no need to have
parenthesis around it, drop them and change the implementation
to simple !!enable.

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: "NXP i.MX U-Boot Team" <uboot-imx at nxp.com>
Cc: Alice Guo <alice.guo at nxp.com>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Jindong Yue <jindong.yue at nxp.com>
Cc: Peng Fan <peng.fan at nxp.com>
Cc: Stefano Babic <sbabic at nabladev.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Vinh Nguyen <vinh.nguyen.xz at renesas.com>
Cc: Ye Li <ye.li at nxp.com>
Cc: u-boot at lists.denx.de
---
 arch/arm/mach-imx/imx9/scmi/clock_scmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx9/scmi/clock_scmi.c b/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
index fc1d5d77799..9030dbf600d 100644
--- a/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
+++ b/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
@@ -12,7 +12,7 @@ int imx_clk_scmi_enable(u32 clock_id, bool enable)
 {
 	struct scmi_clk_state_in_v1 in = {
 		.clock_id = clock_id,
-		.attributes = (enable) ? 1 : 0,
+		.attributes = !!enable,
 	};
 	struct scmi_clk_state_out out;
 	struct scmi_msg msg = SCMI_MSG_IN(SCMI_PROTOCOL_ID_CLOCK,
-- 
2.51.0



More information about the U-Boot mailing list