cppcheck: unused variable

Change-Id: I68d70c1d24756de0b815a7850bbc75afcbeb9a15