diff options
author | Laurence Rochfort <laurence.rochfort@gmail.com> | 2017-05-08 12:03:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-15 07:41:59 +0200 |
commit | 100007115f540a19304fdbe5b78ba501f26552f4 (patch) | |
tree | bc2d882666dc5fc79f569803aeed357327e528a2 /drivers/staging/fbtft | |
parent | 4bfdd7749aa1747d5997b811f61d2e614e3e3022 (diff) | |
download | linux-stable-100007115f540a19304fdbe5b78ba501f26552f4.tar.gz linux-stable-100007115f540a19304fdbe5b78ba501f26552f4.tar.bz2 linux-stable-100007115f540a19304fdbe5b78ba501f26552f4.zip |
Staging: fbtft: Fix unbalanced braces around else statement
Balance if/else braces as recommended by checkpatch.pl
Signed-off-by: Laurence Rochfort <laurence.rochfort@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r-- | drivers/staging/fbtft/fb_agm1264k-fl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index 489151a6bf80..456a8dd65caf 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) |