[PATCH xf86-video-ati] Reindent code in radeon_dri2_create_buffer2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Wednesday, November 09, 2016 2:05 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-ati] Reindent code in
> radeon_dri2_create_buffer2
> 
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> 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.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/radeon_dri2.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
> index 1206b2a..8112670 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);
> --
> 2.10.2
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux