Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
qemu-linux-user
0078-ui-remove-unreachable-code-in-vnc_u.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0078-ui-remove-unreachable-code-in-vnc_u.patch of Package qemu-linux-user
From 3ab0b3964b4db8c16e6652b79e93f617be180892 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" <berrange@redhat.com> Date: Mon, 18 Dec 2017 19:12:17 +0000 Subject: [PATCH] ui: remove unreachable code in vnc_update_client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A previous commit: commit 5a8be0f73d6f60ff08746377eb09ca459f39deab Author: Gerd Hoffmann <kraxel@redhat.com> Date: Wed Jul 13 12:21:20 2016 +0200 vnc: make sure we finish disconnect Added a check for vs->disconnecting at the very start of the vnc_update_client method. This means that the very next "if" statement check for !vs->disconnecting always evaluates true, and is thus redundant. This in turn means the vs->disconnecting check at the very end of the method never evaluates true, and is thus unreachable code. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20171218191228.31018-3-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit c53df961617736f94731d94b62c2954c261d2bae) [LY: BSC#1073489] Signed-off-by: Liang Yan <lyan@suse.com> --- ui/vnc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 7fa5e495a3..31f94376b7 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -972,7 +972,7 @@ static int vnc_update_client(VncState *vs, int has_dirty) } vs->has_dirty += has_dirty; - if (vs->need_update && !vs->disconnecting) { + if (vs->need_update) { VncDisplay *vd = vs->vd; VncJob *job; int y; @@ -1033,10 +1033,6 @@ static int vnc_update_client(VncState *vs, int has_dirty) return n; } - if (vs->disconnecting) { - vnc_disconnect_finish(vs); - } - return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor