diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-03-27 04:17:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 11:44:56 -0500 |
commit | 6257ffacb9e1dc99a910d620ccb92ec88da20a4f (patch) | |
tree | 801b614933ff2fc167f339bd884bd62c6a57a313 | |
parent | eba87e8e8d7024da827accb00ce7e3affd10b7de (diff) |
[PATCH] imsttfb: Remove dead code
clk_p is always 0.
Coverity Bug 67
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/video/imsttfb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/imsttfb.c b/drivers/video/imsttfb.c index 7db42542eb19..859ba7edfb42 100644 --- a/drivers/video/imsttfb.c +++ b/drivers/video/imsttfb.c | |||
@@ -440,9 +440,9 @@ getclkMHz(struct imstt_par *par) | |||
440 | static void | 440 | static void |
441 | setclkMHz(struct imstt_par *par, __u32 MHz) | 441 | setclkMHz(struct imstt_par *par, __u32 MHz) |
442 | { | 442 | { |
443 | __u32 clk_m, clk_n, clk_p, x, stage, spilled; | 443 | __u32 clk_m, clk_n, x, stage, spilled; |
444 | 444 | ||
445 | clk_m = clk_n = clk_p = 0; | 445 | clk_m = clk_n = 0; |
446 | stage = spilled = 0; | 446 | stage = spilled = 0; |
447 | for (;;) { | 447 | for (;;) { |
448 | switch (stage) { | 448 | switch (stage) { |
@@ -453,7 +453,7 @@ setclkMHz(struct imstt_par *par, __u32 MHz) | |||
453 | clk_n++; | 453 | clk_n++; |
454 | break; | 454 | break; |
455 | } | 455 | } |
456 | x = 20 * (clk_m + 1) / ((clk_n + 1) * (clk_p ? 2 * clk_p : 1)); | 456 | x = 20 * (clk_m + 1) / (clk_n + 1); |
457 | if (x == MHz) | 457 | if (x == MHz) |
458 | break; | 458 | break; |
459 | if (x > MHz) { | 459 | if (x > MHz) { |
@@ -466,7 +466,7 @@ setclkMHz(struct imstt_par *par, __u32 MHz) | |||
466 | 466 | ||
467 | par->init.pclk_m = clk_m; | 467 | par->init.pclk_m = clk_m; |
468 | par->init.pclk_n = clk_n; | 468 | par->init.pclk_n = clk_n; |
469 | par->init.pclk_p = clk_p; | 469 | par->init.pclk_p = 0; |
470 | } | 470 | } |
471 | 471 | ||
472 | static struct imstt_regvals * | 472 | static struct imstt_regvals * |