From: Laurence Rochfort Date: Mon, 8 May 2017 11:03:10 +0000 (+0100) Subject: Staging: fbtft: Fix unbalanced braces around else statement X-Git-Tag: v4.14-rc1~623^2~389 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=100007115f540a19304fdbe5b78ba501f26552f4;p=platform%2Fkernel%2Flinux-rpi.git Staging: fbtft: Fix unbalanced braces around else statement Balance if/else braces as recommended by checkpatch.pl Signed-off-by: Laurence Rochfort Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index 489151a..456a8dd 100644 --- a/drivers/staging/fbtft/fb_agm1264k-fl.c +++ b/drivers/staging/fbtft/fb_agm1264k-fl.c @@ -282,10 +282,10 @@ static void iterate_diffusion_matrix(u32 xres, u32 yres, int x, continue; write_pos = &convert_buf[(y + j) * xres + x + i]; coeff = diffusing_matrix[i][j]; - if (-1 == coeff) + if (-1 == coeff) { /* pixel itself */ *write_pos = pixel; - else { + } else { signed short p = *write_pos + error * coeff; if (p > WHITE)