gop: Ensure QueryMode() is called properly
This commit is contained in:
parent
3b60c7bb80
commit
57f384eed5
@ -160,10 +160,10 @@ bool init_gop(struct fb_info *ret,
|
||||
if (status) {
|
||||
panic(false, "gop: Initialisation failed");
|
||||
}
|
||||
status = gop->QueryMode(gop, gop->Mode == NULL ? 0 : gop->Mode->Mode,
|
||||
&mode_info_size, &mode_info);
|
||||
}
|
||||
|
||||
status = gop->QueryMode(gop, gop->Mode->Mode, &mode_info_size, &mode_info);
|
||||
|
||||
if (status) {
|
||||
panic(false, "gop: Initialisation failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user