Fix coverity warnings

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