From: Gerd Hoffmann Date: Thu, 19 Feb 2015 10:03:17 +0000 (+0100) Subject: vnc: remove dead code X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~306^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc5c3ff75135fcc02ca3453568d212241d2bc40f;p=sdk%2Femulator%2Fqemu.git vnc: remove dead code If vs->ws_enabled is set ws_display is non-NULL. Signed-off-by: Gerd Hoffmann Reviewed-by: Gonglei --- diff --git a/ui/vnc.c b/ui/vnc.c index 65ba1c0..bac44ce 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -3627,13 +3627,8 @@ void vnc_display_open(const char *id, Error **errp) } #ifdef CONFIG_VNC_WS if (vs->ws_enabled) { - if (ws_display) { - vs->lwebsock = inet_listen(ws_display, NULL, 0, - SOCK_STREAM, 0, errp); - } else { - vs->lwebsock = inet_listen(display, NULL, 0, - SOCK_STREAM, 5700, errp); - } + vs->lwebsock = inet_listen(ws_display, NULL, 0, + SOCK_STREAM, 0, errp); if (vs->lwebsock < 0) { if (vs->lsock) { close(vs->lsock);