git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
113e5df
)
mmc: Remove unused variable backup from mmc_send_cmd()
author
Oleksandr Tyshchenko
<oleksandr.tyshchenko@ti.com>
Tue, 6 Aug 2013 10:50:10 +0000
(13:50 +0300)
committer
Pantelis 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
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index
5502675
..
0b552f5
100644
(file)
--- 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;