summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>2013-08-06 13:50:10 +0300
committerPantelis Antoniou <panto@antoniou-consulting.com>2013-09-17 20:03:44 +0300
commitc30054ba94d58c157c310e064d6ccda398873bcb (patch)
tree0f339592372b2303590b4b9ad3cff64fa177167d /drivers
parent113e5dfcd77cfef4a1719c9a6ba3933c2ef06320 (diff)
downloadu-boot-imx-c30054ba94d58c157c310e064d6ccda398873bcb.zip
u-boot-imx-c30054ba94d58c157c310e064d6ccda398873bcb.tar.gz
u-boot-imx-c30054ba94d58c157c310e064d6ccda398873bcb.tar.bz2
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 <oleksandr.tyshchenko@ti.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 5502675..0b552f5 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;