[xfer] Use intf_poke() to implement xfer_window_changed()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
81c80c8ba9
commit
7194f38131
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user