Skip to content

Commit

Permalink
video: fbdev: asiliantfb: remove redundant assignment to variable Fta…
Browse files Browse the repository at this point in the history
…rget

Variable Ftarget is being initialized with a value that is never read,
it is being re-assigned a different value a little later on. The
assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211230155202.355336-1-colin.i.king@gmail.com
  • Loading branch information
Colin Ian King authored and Daniel Vetter committed Jan 14, 2022
1 parent a320c3a commit fdb9fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/asiliantfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static const struct fb_ops asiliantfb_ops = {
static void asiliant_calc_dclk2(u32 *ppixclock, u8 *dclk2_m, u8 *dclk2_n, u8 *dclk2_div)
{
unsigned pixclock = *ppixclock;
unsigned Ftarget = 1000000 * (1000000 / pixclock);
unsigned Ftarget;
unsigned n;
unsigned best_error = 0xffffffff;
unsigned best_m = 0xffffffff,
Expand Down

0 comments on commit fdb9fb6

Please sign in to comment.