Skip to content

Commit

Permalink
DasharoPayloadPkg/GraphicsOutputDxe: remove redundant if in GraphicsO…
Browse files Browse the repository at this point in the history
…utputDriverBindingStart

Signed-off-by: Micha¿ Kope¿ <[email protected]>
  • Loading branch information
mkopec authored and SergiiDmytruk committed Jun 4, 2024
1 parent c0cb3d9 commit 6ae77ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,8 @@ GraphicsOutputDriverBindingStart (
FrameBufferBase = Resources->AddrRangeMin;
}
if (DeviceInfo->BarIndex == MAX_UINT8) {
if (Resources->AddrRangeMin == GraphicsInfo->FrameBufferBase) {
FrameBufferBase = Resources->AddrRangeMin;
break;
} else if (Resources->AddrRangeMin <= GraphicsInfo->FrameBufferBase
&& Resources->AddrRangeMin + Resources->AddrLen >= GraphicsInfo->FrameBufferBase + GraphicsInfo->FrameBufferSize ) {
if (Resources->AddrRangeMin <= GraphicsInfo->FrameBufferBase
&& Resources->AddrRangeMin + Resources->AddrLen >= GraphicsInfo->FrameBufferBase + GraphicsInfo->FrameBufferSize ) {
FrameBufferBase = GraphicsInfo->FrameBufferBase;
break;
}
Expand Down

0 comments on commit 6ae77ad

Please sign in to comment.