[Spice-devel] [PATCH xf86-video-qxl 4/4] qxl_surface: remove unused variables, add static where needed

Alon Levy alevy at redhat.com
Mon Jul 15 04:58:41 PDT 2013


---
 src/qxl_surface.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index f82119a..dea3945 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -484,10 +484,8 @@ image_from_surface_internal(qxl_screen_t *qxl,
     return image_bo;
 }
 
-struct qxl_bo *image_from_surface(qxl_screen_t *qxl, qxl_surface_t *dest)
+static struct qxl_bo *image_from_surface(qxl_screen_t *qxl, qxl_surface_t *dest)
 {
-    struct QXLImage *image_bo;
-
     if (!dest->image_bo)
       dest->image_bo = image_from_surface_internal(qxl, dest);
 
@@ -533,7 +531,6 @@ qxl_surface_copy (qxl_surface_t *dest,
     else
     {
 	struct qxl_bo *image_bo;
-	struct QXLImage *image;
 
 	dest->u.copy_src->ref_count++;
 
@@ -603,8 +600,6 @@ image_from_picture (qxl_screen_t *qxl,
 		    qxl_surface_t *surface,
 		    int *force_opaque)
 {
-    struct qxl_bo *image_bo;
-
     if (picture->format == PICT_x8r8g8b8)
 	*force_opaque = TRUE;
     else
-- 
1.8.3.1



More information about the Spice-devel mailing list