diff options
| author | Shawn Lin <shawn.lin@rock-chips.com> | 2016-03-11 11:35:45 -0500 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-03-17 09:54:41 -0400 |
| commit | 0076c71e37cc9f3f0b1c0c83f9f26f31a47222b0 (patch) | |
| tree | 01cee97c93c9e0b6c1866474d4f0a48b113f7c16 /drivers/mmc/core | |
| parent | 96466fcb6c2a19da5c7abe38433688a5b73648c1 (diff) | |
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 <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core')
| -rw-r--r-- | drivers/mmc/core/sd.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) | |||
| 74 | { | 74 | { |
| 75 | u32 *resp = card->raw_cid; | 75 | u32 *resp = card->raw_cid; |
| 76 | 76 | ||
| 77 | memset(&card->cid, 0, sizeof(struct mmc_cid)); | ||
| 78 | |||
| 79 | /* | 77 | /* |
| 80 | * SD doesn't currently have a version field so we will | 78 | * SD doesn't currently have a version field so we will |
| 81 | * have to assume we can parse this. | 79 | * have to assume we can parse this. |
