fix typo

Change-Id: I08eff921ab2de64e5734807963c542818456dd8e
do not use number-of-enum-items as an enum item itself

Because that breaks warning about all cases (not) being handled in switch.

Change-Id: I8fadccd4e5d125cc37b8e10087e9170f07e65440