Tegra: common: fix defects flagged by MISRA scan
Macro assert(e) request 'e' is a bool type, if useing other
type, MISRA report a "The Essential Type Model" violation,
Add a judgement to fix the defects, if 'e' is not bool type.

Remove unused code [Rule 2.5]
Fix the essential type model violation [Rule 10.6, 10.7]
Use local parameter to raplace function parameter [Rule 17.8]

Change-Id: Ifce932addbb0a4b063ef6b38349d886c051d81c0
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
1 parent 75516c3 commit 4c9940022801725ad6871078650be09ca01ca0d5
@Anthony Zhou Anthony Zhou authored on 7 Jul 2017
Varun Wadekar committed on 18 Jan 2019
Showing 7 changed files
View
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c
View
plat/nvidia/tegra/common/drivers/smmu/smmu.c
View
plat/nvidia/tegra/common/tegra_bl31_setup.c
View
plat/nvidia/tegra/common/tegra_fiq_glue.c
View
plat/nvidia/tegra/common/tegra_platform.c
View
plat/nvidia/tegra/common/tegra_pm.c
View
plat/nvidia/tegra/common/tegra_sip_calls.c