OcMachoLib: Remove a superfluous LC type check.
@@ -258,7 +258,6 @@ MachoGetSegmentByName64 (
Segment != NULL;
Segment = MachoGetNextSegment64 (Context, Segment)
) {
- if (Segment->Hdr.Type == MACH_LOAD_COMMAND_SEGMENT_64) {
Result = AsciiStrnCmp (
Segment->SegmentName,
SegmentName,
@@ -268,7 +267,6 @@ MachoGetSegmentByName64 (
return (MACH_SEGMENT_COMMAND_64 *)Segment;
}
}
- }
return NULL;
}
