Fix clang static analyzer warnings.

system/nfc/halimpl/pn54x/tml/phTmlNfc.c:545:17: warning: Access to field
'pDevHandle' results in a dereference of a null pointer (loaded from
variable 'gpphTmlNfc_Context') [clang-analyzer-core.NullDereference]

system/nfc/halimpl/pn54x/hal/phNxpNciHal.c:461:25: warning: Result of
'malloc' is converted to a pointer of type 'char', which is incompatible
with sizeof operand type 'char *'.

system/nfc/halimpl/pn54x/self-test/phNxpNciHal_SelfTest.c:1291:25:
warning: Result of 'malloc' is converted to a pointer of type 'char',
which is incompatible with sizeof operand type 'char *'

Test: Warnings no longer appears.
Change-Id: I7442d1b90670170c2bd179684156a934894411d0
3 files changed