cppcheck: fix reassigned value

Change-Id: Iee162175b692d82679132ce32d026cb3b3bfa77e
cppcheck: fix Same expression on both sides of '||' + simplify a bit

Change-Id: I7903c4af5263f93dc4d311b73cb21e144a63d8d9
cppcheck: fix 2 consecutive breaks

Change-Id: If67b90bc56695a6aaf6d152d4a70dc68126596a6