spd: trusty : fix defects flagged by MISRA scan
authorAnthony Zhou <anzhou@nvidia.com>
Tue, 19 Sep 2017 08:36:22 +0000 (16:36 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 23 Jan 2019 18:31:28 +0000 (10:31 -0800)
commit591054a3757d480af05a5c15234be4e1e3792699
treec4fb36b4d9bd739f3b149f8a53a493c718eaaa7a
parentd6306d14bd4fe50aac29dd422a4c5a5c29fb1166
spd: trusty : fix defects flagged by MISRA scan

Main Fixes:

Use int32_t replace int [Rule 4.6]

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]

Fixed if statement conditional to be essentially boolean [Rule 14.4]

Voided non c-library functions whose return types are not used
[Rule 17.7]

Change-Id: I98caa330c371757eb2dfb9438448cb99115ed907
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
services/spd/trusty/smcall.h
services/spd/trusty/trusty.c