From: Shawn Lin Date: Mon, 14 Mar 2016 04:41:33 +0000 (+0800) Subject: mmc: core: remove redundant memset of sdio_read_cccr X-Git-Tag: v4.14-rc1~3576^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0747eb81c1d106b1408d60452af75cd17a67621;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index 467b3cf..bd44ba8 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;