Skip to content

Commit

Permalink
staging: fbtft: fix unbalanced parenthesis
Browse files Browse the repository at this point in the history
Add missing parenthesis around if/else statement to comply with checkpatch.pl
following check :

Unbalanced braces around else statement
torvalds#288: FILE: drivers/staging/fbtft/fb_agm1264k-fl.c:288:
+			else {

Signed-off-by: Alexis Lothoré <alexis.lothore@gmail.com>
  • Loading branch information
Tropicao authored and 0day robot committed May 12, 2017
1 parent 046a913 commit a2b8e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/fbtft/fb_agm1264k-fl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2b8e66

Please sign in to comment.