summaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
authorMichael Brown2023-03-06 17:55:54 +0100
committerMichael Brown2023-03-06 17:56:37 +0100
commite51e7bbad7d043a6b369b0050ff4e1c0e62f3b5d (patch)
tree8e42e04c4160440bce736e1a1d8e1137b77ff6b2 /src/core/image.c
parent[intelx] Add PCI IDs for Intel 82599 10GBASE-T NIC (diff)
downloadipxe-e51e7bbad7d043a6b369b0050ff4e1c0e62f3b5d.tar.gz
ipxe-e51e7bbad7d043a6b369b0050ff4e1c0e62f3b5d.tar.xz
ipxe-e51e7bbad7d043a6b369b0050ff4e1c0e62f3b5d.zip
[image] Consistently use for_each_image() to iterate over images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/image.c b/src/core/image.c
index f6d3d8dd..5a9aebc7 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -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;
}