diff options
author | Michael Brown | 2011-06-24 15:14:41 +0200 |
---|---|---|
committer | Michael Brown | 2011-06-28 15:45:08 +0200 |
commit | e01ec74601b58f54a5e2ae7b9fd1196972034114 (patch) | |
tree | 54f2d2202274523e2365584502dee7db8deca43b /src/net/infiniband.c | |
parent | [xfer] Send xfer_window_changed() after xfer_vredirect() (diff) | |
download | ipxe-e01ec74601b58f54a5e2ae7b9fd1196972034114.tar.gz ipxe-e01ec74601b58f54a5e2ae7b9fd1196972034114.tar.xz ipxe-e01ec74601b58f54a5e2ae7b9fd1196972034114.zip |
[process] Pass containing object pointer to process step() methods
Give the step() method a pointer to the containing object, rather than
a pointer to the process. This is consistent with the operation of
interface methods, and allows a single function to serve as both an
interface method and a process step() method.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/infiniband.c')
-rw-r--r-- | src/net/infiniband.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/infiniband.c b/src/net/infiniband.c index c2cb834d..c88da73e 100644 --- a/src/net/infiniband.c +++ b/src/net/infiniband.c @@ -866,10 +866,7 @@ static void ib_step ( struct process *process __unused ) { } /** Infiniband event queue process */ -struct process ib_process __permanent_process = { - .list = LIST_HEAD_INIT ( ib_process.list ), - .step = ib_step, -}; +PERMANENT_PROCESS ( ib_process, ib_step ); /*************************************************************************** * |