Skip to content

Commit a2b8e66

Browse files
Tropicao0day robot
authored and
0day robot
committed
staging: fbtft: fix unbalanced parenthesis
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é <[email protected]>
1 parent 046a913 commit a2b8e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/fbtft/fb_agm1264k-fl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ static void iterate_diffusion_matrix(u32 xres, u32 yres, int x,
282282
continue;
283283
write_pos = &convert_buf[(y + j) * xres + x + i];
284284
coeff = diffusing_matrix[i][j];
285-
if (-1 == coeff)
285+
if (-1 == coeff) {
286286
/* pixel itself */
287287
*write_pos = pixel;
288-
else {
288+
} else {
289289
signed short p = *write_pos + error * coeff;
290290

291291
if (p > WHITE)

0 commit comments

Comments
 (0)