summaryrefslogtreecommitdiffstats
path: root/arch/sh/lib
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2014-11-06 14:02:57 +0100
committerTom Rini <trini@ti.com>2014-11-07 16:27:07 -0500
commit0060517ae087eed94c64c175e5042b16e0a415fa (patch)
tree827e188eba7feb81d53025aff9a72b5c355bf170 /arch/sh/lib
parentadbba99606a06df1435de6f1866c0e7996412e27 (diff)
downloadtalos-obmc-uboot-0060517ae087eed94c64c175e5042b16e0a415fa.tar.gz
talos-obmc-uboot-0060517ae087eed94c64c175e5042b16e0a415fa.zip
cppcheck cleanup: fix nullPointer errors
There are a number of places where U-Boot intentionally and legally accesses physical address 0x0000, for example when installing exception vectors on systems where these are located in low memory. Add "cppcheck-suppress nullPointer" comments to silence cppcheck where this is intentional and legal. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch/sh/lib')
-rw-r--r--arch/sh/lib/zimageboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/lib/zimageboot.c b/arch/sh/lib/zimageboot.c
index 86d39983c8..3fea5f5b53 100644
--- a/arch/sh/lib/zimageboot.c
+++ b/arch/sh/lib/zimageboot.c
@@ -45,6 +45,7 @@ int do_sh_zimageboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
bootargs = getenv("bootargs");
/* Clear zero page */
+ /* cppcheck-suppress nullPointer */
memset(param, 0, 0x1000);
/* Set commandline */
OpenPOWER on IntegriCloud