Tegra: fiq_glue: fix MISRA defects
authorAnthony Zhou <anzhou@nvidia.com>
Fri, 24 Feb 2017 06:44:21 +0000 (14:44 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 15 Jun 2017 00:01:27 +0000 (17:01 -0700)
commit5bd1a177dd8e93d05cb97d0b68c44f3d90f8dae6
tree63dc9d68367e007a30ce45cfc2ebf763512b2b3b
parent31d97dc2d876d1948963e4f4e6ef3b549dc98e18
Tegra: fiq_glue: 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]

* Convert object type to match the type of function parameters
  [Rule 10.3]

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

* Expressions resulting from the expansion of macro parameters
  shall be enclosed in parentheses[Rule 20.7]

Change-Id: I5cf83caafcc1650b545ca731bf3eb8f0bfeb362b
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
plat/nvidia/tegra/common/tegra_fiq_glue.c