From bb2c941b3131437185e79c8f2a16469876664572 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Mon, 8 Dec 2025 20:39:22 +0100 Subject: [PATCH] efi: sysfb_efi: Replace open coded swap with the macro Replace the open coded width height swap with the standard macro. Signed-off-by: Tvrtko Ursulin Suggested-by: Thomas Zimmermann Cc: Thomas Zimmermann Cc: Ard Biesheuvel Cc: Melissa Wen Cc: linux-efi@vger.kernel.org Reviewed-by: Thomas Zimmermann Tested-by: Melissa Wen # v3 Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/sysfb_efi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/firmware/efi/sysfb_efi.c b/drivers/firmware/efi/sysfb_efi.c index 1e509595ac034..1d8b6966731c3 100644 --- a/drivers/firmware/efi/sysfb_efi.c +++ b/drivers/firmware/efi/sysfb_efi.c @@ -357,10 +357,7 @@ __init void sysfb_apply_efi_quirks(void) if (screen_info.orig_video_isVGA == VIDEO_TYPE_EFI && dmi_check_system(efifb_dmi_swap_width_height)) { - u16 temp = screen_info.lfb_width; - - screen_info.lfb_width = screen_info.lfb_height; - screen_info.lfb_height = temp; + swap(screen_info.lfb_width, screen_info.lfb_height); screen_info.lfb_linelength = 4 * screen_info.lfb_width; } } -- 2.47.3