summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/board.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-01-05 17:54:57 +0000
committerWolfgang Denk <wd@denx.de>2012-03-03 16:56:51 +0100
commitd01b17611b01928b862756d86b20eaaa0ff60fb0 (patch)
tree21b15df7f2996296418774770b8a0716f1143ee7 /arch/powerpc/lib/board.c
parenta5466651e90439f400449b29526dac99c8f3dad4 (diff)
downloadu-boot-imx-d01b17611b01928b862756d86b20eaaa0ff60fb0.zip
u-boot-imx-d01b17611b01928b862756d86b20eaaa0ff60fb0.tar.gz
u-boot-imx-d01b17611b01928b862756d86b20eaaa0ff60fb0.tar.bz2
ppc: Change memsz variable to signed char
This seems to be unsigned char for no good reason. Tidy this up and remove the casts. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/powerpc/lib/board.c')
-rw-r--r--arch/powerpc/lib/board.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c
index ff5888e..3f9af1d 100644
--- a/arch/powerpc/lib/board.c
+++ b/arch/powerpc/lib/board.c
@@ -1021,7 +1021,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
*/
{
ulong pram = 0;
- uchar memsz[32];
+ char memsz[32];
#ifdef CONFIG_PRAM
pram = getenv_ulong("pram", 10, CONFIG_PRAM);
@@ -1032,9 +1032,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
#endif
#endif
- sprintf((char *) memsz, "%ldk",
- (bd->bi_memsize / 1024) - pram);
- setenv("mem", (char *) memsz);
+ sprintf(memsz, "%ldk", (bd->bi_memsize / 1024) - pram);
+ setenv("mem", memsz);
}
#endif