@@ -108,7 +108,6 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,
108
108
efi_guid_t conout_proto = EFI_CONSOLE_OUT_DEVICE_GUID ;
109
109
bool conout_found = false;
110
110
void * dummy = NULL ;
111
- efi_physical_addr_t current_fb_base ;
112
111
113
112
status = efi_bs_call (handle_protocol , h , proto , (void * * )& gop );
114
113
if (status != EFI_SUCCESS )
@@ -120,7 +119,6 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,
120
119
121
120
mode = efi_table_attr (gop , mode );
122
121
info = efi_table_attr (mode , info );
123
- current_fb_base = efi_table_attr (mode , frame_buffer_base );
124
122
125
123
if ((!first_gop || conout_found ) &&
126
124
info -> pixel_format != PIXEL_BLT_ONLY ) {
@@ -136,7 +134,7 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,
136
134
pixel_format = info -> pixel_format ;
137
135
pixel_info = info -> pixel_information ;
138
136
pixels_per_scan_line = info -> pixels_per_scan_line ;
139
- fb_base = current_fb_base ;
137
+ fb_base = efi_table_attr ( mode , frame_buffer_base ) ;
140
138
141
139
/*
142
140
* Once we've found a GOP supporting ConOut,
0 commit comments