[Spice-devel] [PATCHv2 3/4] gtk: remove unneeded check
Marc-André Lureau
marcandre.lureau at gmail.com
Wed May 25 10:20:15 UTC 2016
spice_cairo_draw_event() can deal with d->canvas.surface == NULL.
Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
src/spice-widget.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/spice-widget.c b/src/spice-widget.c
index a37faad..f13a066 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -1227,7 +1227,6 @@ static gboolean draw_event(GtkWidget *widget, cairo_t *cr, gpointer data)
if (d->mark == 0 || d->canvas.data == NULL ||
d->area.width == 0 || d->area.height == 0)
return false;
- g_return_val_if_fail(d->canvas.surface != NULL, false);
spice_cairo_draw_event(display, cr);
update_mouse_pointer(display);
--
2.7.4
More information about the Spice-devel
mailing list