summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorColin Ian King <colin.king@intel.com>2021-09-10 18:58:44 +0200
committerHelge Deller <deller@gmx.de>2022-01-29 22:24:26 +0100
commit9c5718ab30966feebc1428398b9022a820cfadf7 (patch)
tree0d6ec8c86677303f7a553a4aff65892f1b0f1398 /drivers/video
parentvideo: fbdev: w100fb: Reset global state (diff)
downloadlinux-9c5718ab30966feebc1428398b9022a820cfadf7.tar.xz
linux-9c5718ab30966feebc1428398b9022a820cfadf7.zip
video: fbdev: atyfb: Remove assigned but never used variable statements
There are a couple of statements where local variables are being assigned values that are never read because the function returns immediately after the assignment. Clean up the code by removing them. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/aty/mach64_gx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/fbdev/aty/mach64_gx.c b/drivers/video/fbdev/aty/mach64_gx.c
index 9c37e28fb78b..d06d24830080 100644
--- a/drivers/video/fbdev/aty/mach64_gx.c
+++ b/drivers/video/fbdev/aty/mach64_gx.c
@@ -352,10 +352,8 @@ static int aty_var_to_pll_18818(const struct fb_info *info, u32 vclk_per,
post_divider = 1;
if (MHz100 > MAX_FREQ_2595) {
- MHz100 = MAX_FREQ_2595;
return -EINVAL;
} else if (MHz100 < ABS_MIN_FREQ_2595) {
- program_bits = 0; /* MHz100 = 257 */
return -EINVAL;
} else {
while (MHz100 < MIN_FREQ_2595) {