]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra186: setup: fix defects flagged by MISRA scan
authorAnthony Zhou <anzhou@nvidia.com>
Tue, 21 Mar 2017 07:58:50 +0000 (15:58 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 16 Jan 2019 18:19:52 +0000 (10:19 -0800)
commitd6102295c5694138b2df85069cefab2e46694598
tree53e6b9095ecd7d01c10651fd0733327cf6b848c9
parent214e8464acd27b41d5e81b94e42b7bf33a54fb40
Tegra186: setup: fix defects flagged by MISRA scan

Main fixes:

Added explicit casts (e.g. 0U) to integers in order for them to be
compatible with whatever operation they're used in [Rule 10.1]

Force operands of an operator to the same type category [Rule 10.4]

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

Change-Id: I4840c3122939f736113d61f1462af3bd7b0b5085
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
plat/nvidia/tegra/include/tegra_private.h
plat/nvidia/tegra/soc/t186/plat_setup.c