diff options
author | Alon Levy <alevy@redhat.com> | 2011-01-25 00:38:16 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-01-25 17:27:42 +0200 |
commit | e7cf427cb983e6d4e74edc461ae0aceba26b9fa4 (patch) | |
tree | dfcb9670bde6ec2b1492b587595dd8cede7ad4b4 /common/sw_canvas.c | |
parent | 7b08afc308360346257612882ab593fcd2dfaa38 (diff) | |
download | spice-e7cf427cb983e6d4e74edc461ae0aceba26b9fa4.tar.gz spice-e7cf427cb983e6d4e74edc461ae0aceba26b9fa4.tar.xz spice-e7cf427cb983e6d4e74edc461ae0aceba26b9fa4.zip |
common/sw_canvas: remove unused error val
This is the only unused var change I'll want to revisit eventually,
I'm submitting anyway since it doesn't change current behavior. I'm
talking about ignoring the return value from canvas creation. Adding
a print is possible but I didn't test (may be too verbose, also
preferable to be a debug print if so, and we don't have that option
in the code atm - probably an environment variable will do, or adding
some spice_server_set_logging_level api, maybe even
spice_server_set_logging_fd?)
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r-- | common/sw_canvas.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c index 37083df0..f17bc588 100644 --- a/common/sw_canvas.c +++ b/common/sw_canvas.c @@ -1180,7 +1180,6 @@ static SpiceCanvas *canvas_create_common(pixman_image_t *image, ) { SwCanvas *canvas; - int init_ok; if (need_init) { return NULL; @@ -1189,7 +1188,7 @@ static SpiceCanvas *canvas_create_common(pixman_image_t *image, spice_surface_format_to_pixman (format)); canvas = spice_new0(SwCanvas, 1); - init_ok = canvas_base_init(&canvas->base, &sw_canvas_ops, + canvas_base_init(&canvas->base, &sw_canvas_ops, pixman_image_get_width (image), pixman_image_get_height (image), format |