]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: core: Remove redundant __mmc_send_status()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 Nov 2016 14:27:27 +0000 (15:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:05:23 +0000 (09:05 +0100)
There are only one users left which calls __mmc_send_status(). Moreover,
the ignore_crc parameter isn't being used, so let's just remove these
redundant parts.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
drivers/mmc/core/mmc_ops.c

index 4773c562312dff302dc6799c4875a54294bb5930..0515748ac5287add78331c0933bbef05780c44e3 100644 (file)
@@ -54,8 +54,7 @@ static const u8 tuning_blk_pattern_8bit[] = {
        0xff, 0x77, 0x77, 0xff, 0x77, 0xbb, 0xdd, 0xee,
 };
 
-static inline int __mmc_send_status(struct mmc_card *card, u32 *status,
-                                   bool ignore_crc)
+int mmc_send_status(struct mmc_card *card, u32 *status)
 {
        int err;
        struct mmc_command cmd = {0};
@@ -67,8 +66,6 @@ static inline int __mmc_send_status(struct mmc_card *card, u32 *status,
        if (!mmc_host_is_spi(card->host))
                cmd.arg = card->rca << 16;
        cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 | MMC_CMD_AC;
-       if (ignore_crc)
-               cmd.flags &= ~MMC_RSP_CRC;
 
        err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES);
        if (err)
@@ -83,11 +80,6 @@ static inline int __mmc_send_status(struct mmc_card *card, u32 *status,
        return 0;
 }
 
-int mmc_send_status(struct mmc_card *card, u32 *status)
-{
-       return __mmc_send_status(card, status, false);
-}
-
 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card)
 {
        struct mmc_command cmd = {0};