There are several points in the iPXE codebase where list_for_each_entry() is (ab)used to extract only the first entry from a list. Add a macro list_first_entry() to make this code easier to read. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
83 | 83 |
|
84 | 84 |
|
85 | 85 |
|
86 |
|
|
86 |
|
|
87 |
|
|
87 | 88 |
|
88 | 89 |
|
89 | 90 |
|
|
||
93 | 94 |
|
94 | 95 |
|
95 | 96 |
|
96 |
|
|
97 | 97 |
|
98 | 98 |
|
99 | 99 |
|
|
||
144 | 144 |
|
145 | 145 |
|
146 | 146 |
|
147 |
|
|
147 |
|
|
148 |
|
|
148 | 149 |
|
149 | 150 |
|
150 | 151 |
|
151 |
|
|
152 |
|
|
153 | 152 |
|
154 | 153 |
|
155 | 154 |
|
|
||
157 | 157 |
|
158 | 158 |
|
159 | 159 |
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
160 | 173 |
|
161 | 174 |
|
162 | 175 |
|
|
||
668 | 668 |
|
669 | 669 |
|
670 | 670 |
|
671 |
|
|
672 |
|
|
673 |
|
|
674 |
|
|
675 |
|
|
671 |
|
|
672 |
|
|
673 |
|
|
674 |
|
|
675 |
|
|
676 | 676 |
|
677 | 677 |
|
678 | 678 |
|
|
||
982 | 982 |
|
983 | 983 |
|
984 | 984 |
|
985 |
|
|
986 |
|
|
987 |
|
|
988 |
|
|
985 |
|
|
986 |
|
|
987 |
|
|
989 | 988 |
|
990 |
|
|
989 |
|
|
990 |
|
|
991 | 991 |
|
992 | 992 |
|
993 | 993 |
|
|
||
328 | 328 |
|
329 | 329 |
|
330 | 330 |
|
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
|
|
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
|
|
336 |
|
|
336 | 337 |
|
337 | 338 |
|
338 | 339 |
|
|
||
592 | 593 |
|
593 | 594 |
|
594 | 595 |
|
595 |
|
|
596 |
|
|
597 |
|
|
598 |
|
|
596 |
|
|
597 |
|
|
598 |
|
|
599 |
|
|
599 | 600 |
|
600 |
|
|
601 |
|
|
602 |
|
|
601 | 603 |
|
602 | 604 |
|
603 | 605 |
|
|
||
1014 | 1014 |
|
1015 | 1015 |
|
1016 | 1016 |
|
1017 |
|
|
1018 |
|
|
1019 |
|
|
1017 |
|
|
1018 |
|
|
1020 | 1019 |
|
1021 | 1020 |
|
1022 | 1021 |
|