Browse Source

[xfer] Use intf_poke() to implement xfer_window_changed()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
7194f38131
1 changed files with 1 additions and 11 deletions
  1. 1
    11
      src/core/xfer.c

+ 1
- 11
src/core/xfer.c View File

@@ -138,18 +138,8 @@ size_t xfer_window ( struct interface *intf ) {
138 138
  * generating an xfer_window_changed() message.
139 139
  */
140 140
 void xfer_window_changed ( struct interface *intf ) {
141
-	struct interface *dest;
142
-	xfer_window_changed_TYPE ( void * ) *op =
143
-		intf_get_dest_op ( intf, xfer_window_changed, &dest );
144
-	void *object = intf_object ( dest );
145 141
 
146
-	if ( op ) {
147
-		op ( object );
148
-	} else {
149
-		/* Default is to do nothing */
150
-	}
151
-
152
-	intf_put ( dest );
142
+	intf_poke ( intf, xfer_window_changed );
153 143
 }
154 144
 
155 145
 /**

Loading…
Cancel
Save