OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37d790f
)
tests: kms: fix shadowed declaration warning
author
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 20 Nov 2016 18:25:47 +0000
(20:25 +0200)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Tue, 22 Nov 2016 13:54:31 +0000
(13:54 +0000)
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>
tests/kms/kms-universal-planes.c
patch
|
blob
|
history
diff --git
a/tests/kms/kms-universal-planes.c
b/tests/kms/kms-universal-planes.c
index
d8e5fc4
..
89057bb
100644
(file)
--- a/
tests/kms/kms-universal-planes.c
+++ b/
tests/kms/kms-universal-planes.c
@@
-212,9
+212,9
@@
int main(int argc, char *argv[])
printf("Planes: %u\n", device->num_planes);
for (i = 0; i < device->num_planes; i++) {
- struct kms_plane *plane = device->planes[i];
const char *type = NULL;
+ plane = device->planes[i];
switch (plane->type) {
case DRM_PLANE_TYPE_OVERLAY:
type = "overlay";