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>
1 parent 3436089 commit ab712fd86b4790f171f355508895de198330cfb9
@Anthony Zhou Anthony Zhou authored on 6 Mar 2017
Varun Wadekar committed on 14 Jun 2017
Showing 5 changed files
View
plat/nvidia/tegra/include/drivers/mce.h
View
plat/nvidia/tegra/soc/t186/drivers/include/mce_private.h
View
plat/nvidia/tegra/soc/t186/drivers/mce/ari.c
View
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c
View
plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c