lib/selfboot: don't open code linked list operations
commitedfcce80b2dc474f0701786e8d44a11d59deeb13
authorAaron Durbin <adurbin@chromium.org>
Mon, 11 Jul 2016 17:16:08 +0000 (11 12:16 -0500)
committerAaron Durbin <adurbin@chromium.org>
Tue, 12 Jul 2016 21:38:39 +0000 (12 23:38 +0200)
tree57dca0a0044be82fbe552fe99a64580e14281e02
parent4934818118bdf36927bc8e15aa4d609ba2348b25
lib/selfboot: don't open code linked list operations

The list insertion operations were open coded at each location.
Add helper functions which provide the semantics needed by
the selfboot code in a single place.

Change-Id: Ic757255e01934b499def839131c257bde9d0cc93
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/15601
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
src/lib/selfboot.c