From b5302e1a9d8a47bd29a3e1876fba34be111728a2 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:30 +0200 Subject: slirp: Drop link_up checks from if_output and slirp_socket_can_recv link_up is true once slirp is initialized, so these check are really not required. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- slirp/if.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'slirp/if.c') diff --git a/slirp/if.c b/slirp/if.c index 1ef4bf963a..58ab4c7aca 100644 --- a/slirp/if.c +++ b/slirp/if.c @@ -138,10 +138,7 @@ diddit: /* * This prevents us from malloc()ing too many mbufs */ - if (link_up) { - /* if_start will check towrite */ - if_start(); - } + if_start(); #endif } -- cgit v1.2.1