diff --git a/reactos/drivers/bus/serenum/detect.c b/reactos/drivers/bus/serenum/detect.c index d6a035a40dc..e2d297dfc4b 100644 --- a/reactos/drivers/bus/serenum/detect.c +++ b/reactos/drivers/bus/serenum/detect.c @@ -484,7 +484,7 @@ SerenumDetectLegacyDevice( /* Open port */ Status = SerenumSendIrp(LowerDevice, IRP_MJ_CREATE); - if (!NT_SUCCESS(Status)) goto ByeBye; + if (!NT_SUCCESS(Status)) return Status; /* Reset UART */ CHECKPOINT;