[PATCH 1/2] mmc: octeontx_hsmmc: Need parens in expression
Andrew Goodbody
andrew.goodbody at linaro.org
Thu Jul 31 12:51:21 CEST 2025
The check for no response expected in octeontx_mmc_send_cmd needs parens
adding for proper interpretation.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
drivers/mmc/octeontx_hsmmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/octeontx_hsmmc.c b/drivers/mmc/octeontx_hsmmc.c
index 3b5e1221732..ffc8d4c7874 100644
--- a/drivers/mmc/octeontx_hsmmc.c
+++ b/drivers/mmc/octeontx_hsmmc.c
@@ -1545,7 +1545,7 @@ static int octeontx_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
slot->is_acmd = (cmd->cmdidx == MMC_CMD_APP_CMD);
- if (!cmd->resp_type & MMC_RSP_PRESENT)
+ if (!(cmd->resp_type & MMC_RSP_PRESENT))
debug(" Response type: 0x%x, no response expected\n",
cmd->resp_type);
/* Get the response if present */
--
2.39.5
More information about the U-Boot
mailing list