summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-11-04 12:42:39 -0300
committerFabio Estevam <[email protected]>2025-11-04 12:44:07 -0300
commitf78bf542fee80a2605822deac1a05c583d9284ff (patch)
tree1654b8b2470816ddbf1ab1b4acd12504eb8b63e5
parent503d2088d78a25352b841e92ef6cd58693bbe3f8 (diff)
imx9: scmi: Drop parenthesis around enable
Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
-rw-r--r--arch/arm/mach-imx/imx9/scmi/clock_scmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx9/scmi/clock_scmi.c b/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
index fa15b5f8df9..b6be20ec674 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 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,