git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7fea1
)
mmc: octeontx_hsmmc: Need parens in expression
author
Andrew Goodbody
<andrew.goodbody@linaro.org>
Thu, 31 Jul 2025 10:51:21 +0000
(11:51 +0100)
committer
Stefan Roese
<stefan.roese@mailbox.org>
Mon, 13 Oct 2025 14:13:21 +0000
(16:13 +0200)
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@linaro.org>
drivers/mmc/octeontx_hsmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/octeontx_hsmmc.c
b/drivers/mmc/octeontx_hsmmc.c
index
3b5e122
..
ffc8d4c
100644
(file)
--- 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 */