summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/asiliantfb.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2021-12-30 18:52:01 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2022-01-14 19:58:43 +0300
commitfdb9fb6c1302c112dd2ef5056edda2cef6d73bd4 (patch)
tree3490bbd55950d6c40b047c535cc99d5f7acac785 /drivers/video/fbdev/asiliantfb.c
parenta320c3a3280b0765ffaa5a15a8e6f5d7909d8df9 (diff)
downloadlinux-fdb9fb6c1302c112dd2ef5056edda2cef6d73bd4.tar.xz
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
Diffstat (limited to 'drivers/video/fbdev/asiliantfb.c')
-rw-r--r--drivers/video/fbdev/asiliantfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/asiliantfb.c b/drivers/video/fbdev/asiliantfb.c
index 84c56f525889..f8ef62542f7f 100644
--- a/drivers/video/fbdev/asiliantfb.c
+++ b/drivers/video/fbdev/asiliantfb.c
@@ -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,