From: Ulf Hansson Date: Thu, 8 Jun 2017 13:27:42 +0000 (+0200) Subject: mmc: core: Remove redundant code in mmc_send_cid() X-Git-Tag: v4.13-rc1~179^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3df66e77e10a1eac51854dc91b0d0875897f2e4c;p=karo-tx-linux.git mmc: core: Remove redundant code in mmc_send_cid() The mmc_send_cid() is never called using non SPI mode. Thus, let's remove the redundant code dealing with this. Signed-off-by: Ulf Hansson Reviewed-by: Linus Walleij Reviewed-by: Shawn Lin --- diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index d28434f26f9a..2c4d9fd4b1c1 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -339,13 +339,6 @@ int mmc_send_cid(struct mmc_host *host, u32 *cid) int ret, i; __be32 *cid_tmp; - if (!mmc_host_is_spi(host)) { - if (!host->card) - return -EINVAL; - return mmc_send_cxd_native(host, host->card->rca << 16, - cid, MMC_SEND_CID); - } - cid_tmp = kzalloc(16, GFP_KERNEL); if (!cid_tmp) return -ENOMEM;