OSDN Git Service

Remove unused 'check_sum' and 'j' in va_TraceSurface
authorLim Siew Hoon <siew.hoon.lim@intel.com>
Wed, 22 Jun 2016 11:45:56 +0000 (19:45 +0800)
committerSean V Kelley <seanvk@posteo.de>
Fri, 24 Jun 2016 22:34:19 +0000 (15:34 -0700)
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
va/va_trace.c

index ededead..e9c24a2 100644 (file)
@@ -939,7 +939,7 @@ static void va_TraceMsg(struct trace_context *trace_ctx, const char *msg, ...)
 
 static void va_TraceSurface(VADisplay dpy, VAContextID context)
 {
-    unsigned int i, j;
+    unsigned int i;
     unsigned int fourcc; /* following are output argument */
     unsigned int luma_stride;
     unsigned int chroma_u_stride;
@@ -951,7 +951,6 @@ static void va_TraceSurface(VADisplay dpy, VAContextID context)
     void *buffer = NULL;
     unsigned char *Y_data, *UV_data, *tmp;
     VAStatus va_status;
-    unsigned char check_sum = 0;
     DPY2TRACECTX(dpy, context, VA_INVALID_ID);
 
     if (!trace_ctx->trace_fp_surface)