Fix coverity warnings

Change-Id: Iea304079cef0c5e2b712e5c4901e40b39cd2002f
Signed-off-by: Brian McGillion <brian.mcgillion@intel.com>