mmc: fsl: Use brackets around if()
authorSimon Glass <sjg@chromium.org>
Sat, 22 Jan 2022 12:07:24 +0000 (05:07 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 9 Feb 2022 04:07:59 +0000 (23:07 -0500)
At present the IS_ENABLED() macro has extra brackets, making it possible
to write:

   if IS_ENABLED(CONFIG_XXX)

but it is a bit confusing. Add the missing brackets.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc_imx.c

index 9299635..08ea98f 100644 (file)
@@ -453,7 +453,7 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 
        /* Send the command */
        esdhc_write32(&regs->cmdarg, cmd->cmdarg);
-       if IS_ENABLED(CONFIG_FSL_USDHC) {
+       if (IS_ENABLED(CONFIG_FSL_USDHC)) {
                u32 mixctrl = esdhc_read32(&regs->mixctrl);
 
                esdhc_write32(&regs->mixctrl,