xcb: Do not return value in void function

Sun Studio Compiler complains:
"cairo-xcb-surface.c", line 585: void function cannot return value
even if the returned value is void.
Some minor code restructuring removes the issue.
This commit is contained in:
Andrea Canciani 2010-10-05 10:36:38 +02:00 committed by Chris Wilson
parent e71588c80d
commit b6a97499c7

View file

@ -580,12 +580,10 @@ _cairo_xcb_surface_release_source_image (void *abstract_surface,
{
cairo_xcb_surface_t *surface = abstract_surface;
if (surface->drm != NULL && ! surface->marked_dirty) {
return _cairo_surface_release_source_image (surface->drm,
image, image_extra);
}
cairo_surface_destroy (&image->base);
if (surface->drm != NULL && !surface->marked_dirty)
_cairo_surface_release_source_image (surface->drm, image, image_extra);
else
cairo_surface_destroy (&image->base);
}
static cairo_bool_t