mirror of https://github.com/ipxe/ipxe.git
[image] Consistently use for_each_image() to iterate over images
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/914/head
parent
523788ccda
commit
e51e7bbad7
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue