Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0076c71e authored by Shawn Lin's avatar Shawn Lin Committed by Ulf Hansson
Browse files

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: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 96466fcb
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -74,8 +74,6 @@ void mmc_decode_cid(struct mmc_card *card)
{
{
	u32 *resp = card->raw_cid;
	u32 *resp = card->raw_cid;


	memset(&card->cid, 0, sizeof(struct mmc_cid));

	/*
	/*
	 * SD doesn't currently have a version field so we will
	 * SD doesn't currently have a version field so we will
	 * have to assume we can parse this.
	 * have to assume we can parse this.