From c30054ba94d58c157c310e064d6ccda398873bcb Mon Sep 17 00:00:00 2001 From: Oleksandr Tyshchenko Date: Tue, 6 Aug 2013 13:50:10 +0300 Subject: [PATCH] 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 --- drivers/mmc/mmc.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.39.5