drivers/video: remove redundant res variable
PATCH 1/1 drivers/video: remove redundant res variable
From: Minghao Chi <[email protected]>
Return value from aty_ld_8() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/video/fbdev/aty/mach64_ct.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/fbdev/aty/mach64_ct.c +1 -3
@@ -22,13 +22,11 @@ static u32 aty_pll_to_var_ct(const struct fb_info *info, const union aty_pll *plu8 aty_ld_pll_ct (int offset,const struct atyfb_par *par) { -u8 res;/* write addr byte */ aty_st_8 (CLOCK_CNTL_ADDR , (offset <<2 ) &PLL_ADDR , par);/* read the register value */ - res =aty_ld_8 (CLOCK_CNTL_DATA , par); -return res; +return aty_ld_8 (CLOCK_CNTL_DATA , par); }static void aty_st_pll_ct (int offset,u8 val,const struct atyfb_par *par)
Signature · 1 line
2.25.1