aboutsummaryrefslogtreecommitdiff
path: root/if.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:30 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:49 -0500
commitee89d7bf054980fdc727237173d76c81a639e608 (patch)
tree52a38efabe36e9a12fc84dcb8e263d80718cc931 /if.c
parent7298f3a3fcadca434a5f1281d0ef0754ce39d4cc (diff)
downloadslirp-ee89d7bf054980fdc727237173d76c81a639e608.zip
slirp-ee89d7bf054980fdc727237173d76c81a639e608.tar.gz
slirp-ee89d7bf054980fdc727237173d76c81a639e608.tar.bz2
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'if.c')
-rw-r--r--if.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/if.c b/if.c
index 448eb71..1c11568 100644
--- a/if.c
+++ b/if.c
@@ -134,10 +134,7 @@ diddit:
/*
* This prevents us from malloc()ing too many mbufs
*/
- if (link_up) {
- /* if_start will check towrite */
- if_start();
- }
+ if_start();
#endif
}