Skip to content

Commit

Permalink
mmc: core: remove redundant memset of mmc_decode_cid
Browse files Browse the repository at this point in the history
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 <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Shawn Lin authored and Ulf Hansson committed Mar 17, 2016
1 parent 96466fc commit 0076c71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mmc/core/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0076c71

Please sign in to comment.