x86, efi: Fix display detection in EFI boot stub
[~shefty/rdma-dev.git] / arch / x86 / boot / compressed / eboot.c
index 18e329ca108e5f720adf1974fa1e90c8b2626991..448a86e154a94baa93f620b7761e1500bb7eb7c0 100644 (file)
@@ -432,10 +432,9 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,
                         * Once we've found a GOP supporting ConOut,
                         * don't bother looking any further.
                         */
+                       first_gop = gop;
                        if (conout_found)
                                break;
-
-                       first_gop = gop;
                }
        }