mmc: octeontx_hsmmc: Need parens in expression
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 31 Jul 2025 10:51:21 +0000 (11:51 +0100)
committerStefan 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

index 3b5e122..ffc8d4c 100644 (file)
@@ -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 */