mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[image] Use list_first_entry() to clarify logic in main()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -88,11 +88,8 @@ __asmcall int main ( void ) {
|
||||
* booting fails for any reason, offer a second chance
|
||||
* to enter the shell for diagnostics.
|
||||
*/
|
||||
if ( have_images() ) {
|
||||
for_each_image ( image ) {
|
||||
image_exec ( image );
|
||||
break;
|
||||
}
|
||||
if ( ( image = first_image() ) != NULL ) {
|
||||
image_exec ( image );
|
||||
} else {
|
||||
autoboot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user