Tegra: sip_calls: fix defects flagged by MISRA scan
Main fixes:

* Expressions resulting from the expansion of macro parameters
  shall be enclosed in parentheses [Rule 20.7]
* 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]
* Fix implicit widening of composite assignment [Rule 10.6]

Change-Id: Ia83c3ab6e4c8c03c19c950978a7936ebfc290590
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent b495791 commit 1d49112b2ac07b2130a0fe3850b36ac7c201ae13
@Anthony Zhou Anthony Zhou authored on 28 Feb 2017
Varun Wadekar committed on 16 Jan 2019
Showing 4 changed files
View
plat/nvidia/tegra/common/tegra_sip_calls.c
View
plat/nvidia/tegra/include/tegra_private.h
View
plat/nvidia/tegra/soc/t132/plat_sip_calls.c
View
plat/nvidia/tegra/soc/t186/plat_sip_calls.c