projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5b599
)
ARM: zynq: Fix sparse warning in ddrc.c
author
Michal Simek
<michal.simek@xilinx.com>
Fri, 25 Apr 2014 12:19:00 +0000
(14:19 +0200)
committer
Michal Simek
<michal.simek@xilinx.com>
Wed, 14 May 2014 05:43:34 +0000
(07:43 +0200)
Warning:
arch/arm/cpu/armv7/zynq/ddrc.c:43:24: warning: Using plain integer as NULL pointer
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/ddrc.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/zynq/ddrc.c
b/arch/arm/cpu/armv7/zynq/ddrc.c
index ba6a6aee5cbf57d434d47914d2b9277d2a269960..302654d64aaa879cabe1f78b46f52eef2f067e0f 100644
(file)
--- 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");
}