cppcheck: unused variable

Change-Id: If497a2bbcc13702a960f510b3daf3bf7dc12d4c7
cppcheck: zerodiv

Change-Id: I09e1c86bdda301c11700ffe05d4a3d83b7a1104d
cppcheck: consecutive return/break/...

Change-Id: I171df68539fc41046b706157c04ab1e8cc1e60ca