[Qemu-devel] [PATCH 3/4] net: extract notify_link_status_changed() function

2012-10-18 Thread Stefan Hajnoczi
From: Stefan Hajnoczi The code to invoke the NetClientInfo .link_status_changed() callback is duplicated in several places. Create a single notify_link_status_changed() function and avoid duplication. This is useful because later patches change net internals. By having a single function it is

[Qemu-devel] [PATCH 3/4] net: extract notify_link_status_changed() function

2012-07-02 Thread Stefan Hajnoczi
The code to invoke the NetClientInfo .link_status_changed() callback is duplicated in several places. Create a single notify_link_status_changed() function and avoid duplication. This is useful because later patches change net internals. By having a single function it is easier to make changes w