coverity: Fix MISRA null pointer violations
Fix code that violates the MISRA rule:
MISRA C-2012 Rule 11.9: Literal "0" shall not be used as
null pointer constant.

The fix explicitly checks whether a pointer is NULL.

Change-Id: Ibc318dc0f464982be9a34783f24ccd1d44800551
Signed-off-by: Zelalem <zelalem.aweke@arm.com>
1 parent 235c817 commit 466bb285c6985027c75a230e39f2ae246fd07971
@Zelalem Zelalem authored on 5 Feb 2020
Showing 7 changed files
View
bl1/aarch64/bl1_context_mgmt.c
View
bl1/bl1_main.c
View
bl2/bl2_image_load_v2.c
View
common/desc_image_load.c
View
drivers/console/multi_console.c
View
lib/utils/mem_region.c
View
plat/arm/common/arm_bl2_setup.c