From: Oleksandr Tyshchenko Date: Tue, 6 Aug 2013 10:50:10 +0000 (+0300) Subject: mmc: Remove unused variable backup from mmc_send_cmd() X-Git-Tag: v2013.10-rc4~26^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c30054ba94d58c157c310e064d6ccda398873bcb;p=u-boot mmc: Remove unused variable backup from mmc_send_cmd() Do not call a memset for unused variable backup every time. Remove unused variable from function. Signed-off-by: Oleksandr Tyshchenko Acked-by: Pantelis Antoniou --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 55026759ed..0b552f5850 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -55,11 +55,8 @@ int board_mmc_getcd(struct mmc *mmc)__attribute__((weak, static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) { - struct mmc_data backup; int ret; - memset(&backup, 0, sizeof(backup)); - #ifdef CONFIG_MMC_TRACE int i; u8 *ptr;