cppcheck: same expression

the same comment and expression here is duplicated further down, except this
time without the redundant repeat test

Change-Id: Ife4bebf181e7a6011137beaeec2b69f5cdcfe908