From: Shawn Lin Date: Fri, 11 Mar 2016 16:35:45 +0000 (+0800) Subject: mmc: core: remove redundant memset of mmc_decode_cid X-Git-Tag: v4.6-rc1~58^2~7 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=0076c71e37cc9f3f0b1c0c83f9f26f31a47222b0;p=linux.git mmc: core: remove redundant memset of mmc_decode_cid When initializing sd or sdio card, we get struct mmc_card from mmc_alloc_card which allocates it by kzalloc. So we don't need another memset while decoding cid. Signed-off-by: Shawn Lin Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index bb39a29b2db6..b95bd24d92f4 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -74,8 +74,6 @@ void mmc_decode_cid(struct mmc_card *card) { u32 *resp = card->raw_cid; - memset(&card->cid, 0, sizeof(struct mmc_cid)); - /* * SD doesn't currently have a version field so we will * have to assume we can parse this.