aboutsummaryrefslogtreecommitdiffstats
path: root/tests/kms
diff options
context:
space:
mode:
authorGrazvydas Ignotas2016-11-20 12:25:47 -0600
committerEmil Velikov2016-11-22 07:54:31 -0600
commit1fc32f1cc5046fe76f2d5094fc576e097ea031e7 (patch)
tree6edc4ee9037c86b246cc1d3da51b4d7c8422013d /tests/kms
parent37d790f7d449874d0bf199d9ca9871d12b4d599a (diff)
downloadexternal-libgbm-1fc32f1cc5046fe76f2d5094fc576e097ea031e7.tar.gz
external-libgbm-1fc32f1cc5046fe76f2d5094fc576e097ea031e7.tar.xz
external-libgbm-1fc32f1cc5046fe76f2d5094fc576e097ea031e7.zip
tests: kms: fix shadowed declaration warning
There is no need to maintain the value in the shadowed variable from what I can see. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/kms')
-rw-r--r--tests/kms/kms-universal-planes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms/kms-universal-planes.c b/tests/kms/kms-universal-planes.c
index d8e5fc48..89057bb5 100644
--- a/tests/kms/kms-universal-planes.c
+++ b/tests/kms/kms-universal-planes.c
@@ -212,9 +212,9 @@ int main(int argc, char *argv[])
212 printf("Planes: %u\n", device->num_planes); 212 printf("Planes: %u\n", device->num_planes);
213 213
214 for (i = 0; i < device->num_planes; i++) { 214 for (i = 0; i < device->num_planes; i++) {
215 struct kms_plane *plane = device->planes[i];
216 const char *type = NULL; 215 const char *type = NULL;
217 216
217 plane = device->planes[i];
218 switch (plane->type) { 218 switch (plane->type) {
219 case DRM_PLANE_TYPE_OVERLAY: 219 case DRM_PLANE_TYPE_OVERLAY:
220 type = "overlay"; 220 type = "overlay";