Tegra: fix MISRA defects in tegra_bl31_setup.c
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 2 Jan 2019 18:48:18 +0000 (10:48 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 18 Jan 2019 17:21:50 +0000 (09:21 -0800)
commitfcf23a1419ed2277fc943232299a6191852e5bc9
tree68742db5840bd47be89e308abba0ba98984732de
parent647d4a035a3a4649dc218f2a42f34d07d371c336
Tegra: fix MISRA defects in tegra_bl31_setup.c

Main fixes:

Add parentheses to avoid implicit operator precedence [Rule 12.1]

Fixed if statement conditional to be essentially boolean [Rule 14.4]

Added curly braces ({}) around if statements in order to
make them compound [Rule 15.6]

Voided non c-library functions whose return types are not used [Rule 17.7]

Bug 200272157

Change-Id: Ic3ab5a3de95aeb6d2265df940f7fb35ea0f19ab0
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
plat/nvidia/tegra/common/tegra_bl31_setup.c
plat/nvidia/tegra/include/tegra_private.h