]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: remove redundant memset of mmc_decode_cid
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 11 Mar 2016 16:35:45 +0000 (00:35 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 17 Mar 2016 13:54:41 +0000 (14:54 +0100)
commitda76b9314386d985d797e40051b12e67de994826
tree01cee97c93c9e0b6c1866474d4f0a48b113f7c16
parent2e75805e340cb61466138e4d6a7e362575d8eb5c
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>
drivers/mmc/core/sd.c