]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: Remove unused variable backup from mmc_send_cmd()
authorOleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
Tue, 6 Aug 2013 10:50:10 +0000 (13:50 +0300)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Tue, 17 Sep 2013 17:03:44 +0000 (20:03 +0300)
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>
drivers/mmc/mmc.c

index 55026759ede4d41cbb26e2096a965e87e9b812b6..0b552f5850de0ff9b5404dee9fae606ebe1ebd1e 100644 (file)
@@ -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;