mmc: MAN_BKOPS_EN inverse debug message logic
authorUri Yanai <uri.yanai@sandisk.com>
Tue, 7 Feb 2017 16:00:00 +0000 (18:00 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Feb 2017 08:10:59 +0000 (09:10 +0100)
Inverse the logic for printing the debug message.
In mmc_decode_ext_csd() print message when MAN_BKOPS_EN is set

Signed-off-by: Uri Yanai <uri.yanai@sandisk.com>
Signed-off-by: Alex Lemberg <alex.lemberg@sandisk.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c

index f1a451e485382f79970645b4aeda9648f46f2a8c..1b67e30853531926995c923052b8617be280d833 100644 (file)
@@ -543,8 +543,8 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
                                                EXT_CSD_MANUAL_BKOPS_MASK);
                        card->ext_csd.raw_bkops_status =
                                ext_csd[EXT_CSD_BKOPS_STATUS];
-                       if (!card->ext_csd.man_bkops_en)
-                               pr_debug("%s: MAN_BKOPS_EN bit is not set\n",
+                       if (card->ext_csd.man_bkops_en)
+                               pr_debug("%s: MAN_BKOPS_EN bit is set\n",
                                        mmc_hostname(card->host));
                }