u-boot: Improve error checking on framebuffer
This commit is contained in:
@@ -121,10 +121,18 @@ platform_init_video(void)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (gFramebuffer != NULL) {
|
if (gFramebuffer == NULL) {
|
||||||
gFramebuffer->Probe();
|
ERROR("No framebuffer device found!\n");
|
||||||
gFramebuffer->Init();
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status_t result = gFramebuffer->Probe();
|
||||||
|
if (result != B_OK)
|
||||||
|
return result;
|
||||||
|
|
||||||
|
gFramebuffer->Init();
|
||||||
|
if (result != B_OK)
|
||||||
|
return result;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user