summaryrefslogtreecommitdiff
path: root/board/scb9328
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2014-11-06 13:02:57 (GMT)
committerTom Rini <trini@ti.com>2014-11-07 21:27:07 (GMT)
commit0060517ae087eed94c64c175e5042b16e0a415fa (patch)
tree827e188eba7feb81d53025aff9a72b5c355bf170 /board/scb9328
parentadbba99606a06df1435de6f1866c0e7996412e27 (diff)
downloadu-boot-0060517ae087eed94c64c175e5042b16e0a415fa.tar.xz
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 'board/scb9328')
-rw-r--r--board/scb9328/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/scb9328/flash.c b/board/scb9328/flash.c
index e3a582f..73bfa00 100644
--- a/board/scb9328/flash.c
+++ b/board/scb9328/flash.c
@@ -72,8 +72,10 @@ static FLASH_BUS_RET flash_status_reg (void)
FLASH_BUS *addr = (FLASH_BUS *) 0;
+ /* cppcheck-suppress nullPointer */
*addr = FLASH_CMD (CFI_INTEL_CMD_READ_STATUS_REGISTER);
+ /* cppcheck-suppress nullPointer */
return *addr;
}