]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[list] Add list_first_entry()
authorMichael Brown <mcb30@ipxe.org>
Mon, 8 Nov 2010 02:51:18 +0000 (02:51 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 8 Nov 2010 03:15:28 +0000 (03:15 +0000)
commitea631f6fb8dbffe3081ecf29eafa62ecd38ec64f
treef27d347fc48c524e172a4bdeea80976a26b9904a
parent295ba15bd670038e1f22d3c72151036337298a1c
[list] Add list_first_entry()

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>
src/core/process.c
src/hci/commands/fcmgmt_cmd.c
src/include/ipxe/list.h
src/net/80211/net80211.c
src/net/infiniband.c
src/net/netdevice.c
src/net/tcp.c