Fix coverity warnings

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