[image] Consistently use for_each_image() to iterate over images

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/914/head
Michael Brown 2023-03-06 16:55:54 +00:00
parent 523788ccda
commit e51e7bbad7
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ void unregister_image ( struct image *image ) {
struct image * find_image ( const char *name ) {
struct image *image;
list_for_each_entry ( image, &images, list ) {
for_each_image ( image ) {
if ( strcmp ( image->name, name ) == 0 )
return image;
}

View File

@ -130,7 +130,7 @@ static struct image * efi_file_find ( const char *name ) {
struct image *image;
/* Find image */
list_for_each_entry ( image, &images, list ) {
for_each_image ( image ) {
if ( strcasecmp ( image->name, name ) == 0 )
return image;
}