summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2016-03-14 05:41:33 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-03-17 14:54:41 +0100
commita0747eb81c1d106b1408d60452af75cd17a67621 (patch)
tree0ef2dff51fcdcae5998779f8168e61bfe27cd859 /drivers/mmc
parentmmc: core: remove redundant memset of mmc_decode_cid (diff)
downloadlinux-a0747eb81c1d106b1408d60452af75cd17a67621.tar.xz
linux-a0747eb81c1d106b1408d60452af75cd17a67621.zip
mmc: core: remove redundant memset of sdio_read_cccr
When initializing sdio card, we get struct mmc_card from mmc_alloc_card which allocates it by kzalloc. So we don't need another memset while reading cccr. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 467b3cf80c44..bd44ba8116d1 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -106,8 +106,6 @@ static int sdio_read_cccr(struct mmc_card *card, u32 ocr)
unsigned char data;
unsigned char speed;
- memset(&card->cccr, 0, sizeof(struct sdio_cccr));
-
ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_CCCR, 0, &data);
if (ret)
goto out;