DEVID_MAXTYPE
if (type > DEVID_MAXTYPE)
if ((type == DEVID_NONE) || (type > DEVID_MAXTYPE))
DEVID_MAXTYPE +1) /* unknown */