arm-trusted-firmware/plat/nvidia/tegra/common/drivers/bpmp_ipc
Varun Wadekar 21368290b4 Tegra: bpmp_ipc: 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 'ipc_send_req_atomic'
handler to reduce the McCabe Cyclomatic Complexity for this function

Change-Id: I20fef79a771301e1c824aea72a45ff83f97591d5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2020-02-20 09:25:45 -08:00
..
intf.c Tegra: bpmp_ipc: improve cyclomatic complexity 2020-02-20 09:25:45 -08:00
intf.h Tegra: bpmp: fix multiple MISRA issues 2020-01-31 13:21:24 -08:00
ivc.c Tegra: bpmp: fix header file paths 2020-01-23 08:58:17 -08:00
ivc.h Tegra: bpmp: fix multiple MISRA issues 2020-01-31 13:21:24 -08:00