cppcheck: fix same expression on both sides

Change-Id: I3de69e2ae186ea1ae8f792588c04b4e799ce1331