projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a320c3a
)
video: fbdev: asiliantfb: remove redundant assignment to variable Ftarget
author
Colin Ian King
<colin.i.king@gmail.com>
Thu, 30 Dec 2021 15:52:01 +0000
(15:52 +0000)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 14 Jan 2022 16:58:43 +0000
(17:58 +0100)
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
drivers/video/fbdev/asiliantfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/asiliantfb.c
b/drivers/video/fbdev/asiliantfb.c
index 84c56f525889fbd796500059f037c7eae7288679..f8ef62542f7f590f73c52551f3fbf2248667b3e3 100644
(file)
--- 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,