david/ipxe
Archived
1
0

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2015-07-08 16:25:44 +01:00
parent 81c80c8ba9
commit 7194f38131

View File

@ -138,18 +138,8 @@ size_t xfer_window ( struct interface *intf ) {
* generating an xfer_window_changed() message.
*/
void xfer_window_changed ( struct interface *intf ) {
struct interface *dest;
xfer_window_changed_TYPE ( void * ) *op =
intf_get_dest_op ( intf, xfer_window_changed, &dest );
void *object = intf_object ( dest );
if ( op ) {
op ( object );
} else {
/* Default is to do nothing */
}
intf_put ( dest );
intf_poke ( intf, xfer_window_changed );
}
/**