Skip to content

Commit

Permalink
video: fbdev: mb862xx: remove redundant assignment to pointer ptr
Browse files Browse the repository at this point in the history
The pointer ptr is being assigned a value that is never read. The
pointer is being re-assigned later in a loop. The assignment is
redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Colin Ian King authored and Helge Deller committed Jan 29, 2022
1 parent fe4059c commit dd29090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/mb862xx/mb862xxfb_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy,
cmd[2] = (height << 16) | width;

i = 0;
line = ptr = image->data;
line = image->data;
bytes = image->width;

while (i < height) {
Expand Down

0 comments on commit dd29090

Please sign in to comment.