arm-trusted-firmware/plat/nvidia/tegra/common
Varun Wadekar ee21281a5f Tegra: common: improve cyclomatic complexity
Code complexity is a good indication of maintainability versus
testability of a piece of software.

ISO26262 introduces the following thresholds:

    complexity < 10 is accepted
    10 <= complexity < 20 has to be justified
    complexity >= 20 cannot be accepted

Rationale is that number of test cases to fully test a piece of
software can (depending on the coverage metrics) grow exponentially
with the number of branches in the software.

This patch removes redundant conditionals from 'bl31_early_platform_setup'
handler to reduce the McCabe Cyclomatic Complexity for this function.

Change-Id: Ifb628e33269b388f9323639cd97db761a7e049c4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2020-02-20 09:25:45 -08:00
..
aarch64 tegra: add support for multi console interface 2019-08-15 13:49:34 -07:00
drivers Tegra: bpmp: fix multiple MISRA issues 2020-01-31 13:21:24 -08:00
lib/debug Makefile: remove extra include paths in INCLUDES 2019-04-03 15:30:46 +01:00
tegra_bl31_setup.c Tegra: common: improve cyclomatic complexity 2020-02-20 09:25:45 -08:00
tegra_common.mk Tegra: compile PMC driver for Tegra132/Tegra210 platforms 2020-01-31 13:20:57 -08:00
tegra_delay_timer.c Tegra: delay_timer: support for physical secure timer 2020-02-20 09:25:45 -08:00
tegra_fiq_glue.c Tegra: fiq_glue: support to handle LEGACY_FIQ PPIs for Tegra SoCs 2019-01-31 08:46:41 -08:00
tegra_gicv2.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
tegra_io_storage.c Tegra: dummy support for the io_storage backend 2019-03-01 10:22:54 -08:00
tegra_platform.c Tegra: common: fix defects flagged by MISRA scan 2019-01-18 09:21:50 -08:00
tegra_pm.c Tegra: compile PMC driver for Tegra132/Tegra210 platforms 2020-01-31 13:20:57 -08:00
tegra_sip_calls.c Tegra: remove weakly defined per-platform SiP handler 2020-01-31 13:19:48 -08:00
tegra_topology.c Makefile: remove extra include paths in INCLUDES 2019-04-03 15:30:46 +01:00