From: Michal Simek Date: Fri, 25 Apr 2014 12:19:00 +0000 (+0200) Subject: ARM: zynq: Fix sparse warning in ddrc.c X-Git-Tag: v2014.07-rc2~2^2~2^2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec9638659f5ed9cbb691c09fb72aee12c3426601;p=u-boot ARM: zynq: Fix sparse warning in ddrc.c Warning: arch/arm/cpu/armv7/zynq/ddrc.c:43:24: warning: Using plain integer as NULL pointer Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/ddrc.c b/arch/arm/cpu/armv7/zynq/ddrc.c index ba6a6aee5c..302654d64a 100644 --- a/arch/arm/cpu/armv7/zynq/ddrc.c +++ b/arch/arm/cpu/armv7/zynq/ddrc.c @@ -40,7 +40,7 @@ void zynq_ddrc_init(void) * first stage bootloader. To get ECC to work all memory has * been initialized by writing any value. */ - memset(0, 0, 1 * 1024 * 1024); + memset((void *)0, 0, 1 * 1024 * 1024); } else { puts("Memory: ECC disabled\n"); }