DebugPortDevice->DebugPortVariable\r
);\r
DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) DebugPortDevice->DebugPortVariable;\r
- while (!EfiIsDevicePathEnd (DevicePath) && !IS_UART_DEVICEPATH (DevicePath)) {\r
- DevicePath = EfiNextDevicePathNode (DevicePath);\r
+ while (!IsDevicePathEnd (DevicePath) && !IS_UART_DEVICEPATH (DevicePath)) {\r
+ DevicePath = NextDevicePathNode (DevicePath);\r
}\r
\r
- if (EfiIsDevicePathEnd (DevicePath)) {\r
+ if (IsDevicePathEnd (DevicePath)) {\r
FreePool (gDebugPortDevice->DebugPortVariable);\r
DebugPortDevice->DebugPortVariable = NULL;\r
} else {\r