Fixed Coverity Issues reported

Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>