efi_guid_t conout_proto = EFI_CONSOLE_OUT_DEVICE_GUID;
                bool conout_found = false;
                void *dummy = NULL;
-               efi_physical_addr_t current_fb_base;
 
                status = efi_bs_call(handle_protocol, h, proto, (void **)&gop);
                if (status != EFI_SUCCESS)
 
                mode = efi_table_attr(gop, mode);
                info = efi_table_attr(mode, info);
-               current_fb_base = efi_table_attr(mode, frame_buffer_base);
 
                if ((!first_gop || conout_found) &&
                    info->pixel_format != PIXEL_BLT_ONLY) {
                        pixel_format = info->pixel_format;
                        pixel_info = info->pixel_information;
                        pixels_per_scan_line = info->pixels_per_scan_line;
-                       fb_base = current_fb_base;
+                       fb_base = efi_table_attr(mode, frame_buffer_base);
 
                        /*
                         * Once we've found a GOP supporting ConOut,