]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra186: mce: fix MISRA defects
authorAnthony Zhou <anzhou@nvidia.com>
Mon, 6 Mar 2017 08:06:45 +0000 (16:06 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 15 Jun 2017 00:02:01 +0000 (17:02 -0700)
commitab712fd86b4790f171f355508895de198330cfb9
tree7b1b2581087fa3f8d8ad207af378ab01d01782d9
parent3436089d6725e74c836ae6c1f5367eeedc051f48
Tegra186: mce: fix MISRA defects

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/while statements in order to
  make them compound [Rule 15.6]
* Added parentheses [Rule 12.1]
* Voided non C-library functions whose return types are not used [Rule 17.7]

Change-Id: I91404edec2e2194b1ce2672d2a3fc6a1f5bf41f1
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/include/drivers/mce.h
plat/nvidia/tegra/soc/t186/drivers/include/mce_private.h
plat/nvidia/tegra/soc/t186/drivers/mce/ari.c
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c
plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c