From 6ae77ad726caf8847017a61a5b19eb0442b4a150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kope=C4=87?= Date: Tue, 4 Jun 2024 11:29:28 +0200 Subject: [PATCH] DasharoPayloadPkg/GraphicsOutputDxe: remove redundant if in GraphicsOutputDriverBindingStart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Micha¿ Kope¿ --- DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c b/DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c index 7f57510ccf..86ca2f1e33 100644 --- a/DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c +++ b/DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c @@ -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; }