Fix some coverity warnings
Fix some coverity warnings

Change-Id: I474a7280104be097d9c9b64406d1886cd429dc36
Signed-off-by: Brian Mcgillion <e5584ecd8ee5868d4650d758a8412085be93f4f1@intel.com>

Open-TEE/tests,Open-TEE/tests