IsDevicePathEndType
(IsDevicePathEndType(a) && IsDevicePathEndSubType(a))
if (IsDevicePathEndType(devpath) &&
if (IsDevicePathEndType(node)) {