Few coverity issues

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