summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-11-07 16:34:37 +0900
committerMichel Dänzer <michel@daenzer.net>2016-11-09 16:02:11 +0900
commitbe9f67339a19a6649eab52aa2e0c8971cd9b4727 (patch)
tree836ff92c8d8053390220abfd3f6a5955031496f4
parent350a2645a1b127227ff294c0b62d20000d0fd48a (diff)
Reindent code in radeon_dri2_create_buffer2
Fixes warning about misleading indentation from recent versions of gcc: ../../src/radeon_dri2.c: In function ‘radeon_dri2_create_buffer2’: ../../src/radeon_dri2.c:224:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO) ^~ ../../src/radeon_dri2.c:227:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (aligned_width == front_width) ^~ No functional change intended. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/radeon_dri2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 1206b2ae..81126706 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -224,14 +224,14 @@ radeon_dri2_create_buffer2(ScreenPtr pScreen,
if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO)
tiling |= RADEON_TILING_MACRO;
- if (aligned_width == front_width)
- aligned_width = pScrn->virtualX;
-
- pixmap = (*pScreen->CreatePixmap)(pScreen,
- aligned_width,
- height,
- depth,
- flags | RADEON_CREATE_PIXMAP_DRI2);
+ if (aligned_width == front_width)
+ aligned_width = pScrn->virtualX;
+
+ pixmap = (*pScreen->CreatePixmap)(pScreen,
+ aligned_width,
+ height,
+ depth,
+ flags | RADEON_CREATE_PIXMAP_DRI2);
}
buffers = calloc(1, sizeof *buffers);