summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>2014-11-04 20:48:47 +0200
committerTom Rini <trini@ti.com>2014-11-06 11:04:39 -0500
commit30491fc83ea423bb73a5ab769360a91a416fd044 (patch)
treed8b3b912ae969a0128c08659320608b7c60ccf0d /board
parent15bbafadda49919c09fc7f9c5b9e21f29238874e (diff)
downloadu-boot-imx-30491fc83ea423bb73a5ab769360a91a416fd044.zip
u-boot-imx-30491fc83ea423bb73a5ab769360a91a416fd044.tar.gz
u-boot-imx-30491fc83ea423bb73a5ab769360a91a416fd044.tar.bz2
ks2_evm: board: remove sprintf for simple string
There is no reason to sprintf simple string. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/ks2_evm/board.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index 4029493..ff7bc4b 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -122,7 +122,6 @@ void ft_board_setup(void *blob, bd_t *bd)
int nbanks;
u64 size[2];
u64 start[2];
- char name[32];
int nodeoffset;
u32 ddr3a_size;
int unitrd_fixup = 0;
@@ -158,15 +157,13 @@ void ft_board_setup(void *blob, bd_t *bd)
}
/* reserve memory at start of bank */
- sprintf(name, "mem_reserve_head");
- env = getenv(name);
+ env = getenv("mem_reserve_head");
if (env) {
start[0] += ustrtoul(env, &endp, 0);
size[0] -= ustrtoul(env, &endp, 0);
}
- sprintf(name, "mem_reserve");
- env = getenv(name);
+ env = getenv("mem_reserve");
if (env)
size[0] -= ustrtoul(env, &endp, 0);