mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
video: fbdev: asiliantfb: remove redundant assignment to variable Ftarget
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
This commit is contained in:
parent
a320c3a328
commit
fdb9fb6c13
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
static void asiliant_calc_dclk2(u32 *ppixclock, u8 *dclk2_m, u8 *dclk2_n, u8 *dclk2_div)
|
||||||
{
|
{
|
||||||
unsigned pixclock = *ppixclock;
|
unsigned pixclock = *ppixclock;
|
||||||
unsigned Ftarget = 1000000 * (1000000 / pixclock);
|
unsigned Ftarget;
|
||||||
unsigned n;
|
unsigned n;
|
||||||
unsigned best_error = 0xffffffff;
|
unsigned best_error = 0xffffffff;
|
||||||
unsigned best_m = 0xffffffff,
|
unsigned best_m = 0xffffffff,
|
||||||
|
|
Loading…
Reference in a new issue