diff options
Diffstat (limited to 'ui/spice-display.c')
-rw-r--r-- | ui/spice-display.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c index 2a77a545ae..0553c5e5b0 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -774,9 +774,7 @@ static void display_mouse_define(DisplayChangeListener *dcl, SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl); qemu_mutex_lock(&ssd->lock); - if (c) { - cursor_get(c); - } + cursor_get(c); cursor_put(ssd->cursor); ssd->cursor = c; ssd->hot_x = c->hot_x; |