Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: kyro: remove set but not used 'ulCoreClock'

This addresses the following gcc warning with "make W=1":

drivers/video/fbdev/kyro/STG4000InitDevice.c: In function
‘SetCoreClockPLL’:
drivers/video/fbdev/kyro/STG4000InitDevice.c:247:6: warning: variable
‘ulCoreClock’ set but not used [-Wunused-but-set-variable] // yanaijie
fixed
247 | u32 ulCoreClock;
| ^~~~~~~~~~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827130028.428893-1-yanaijie@huawei.com

authored by

Jason Yan and committed by
Bartlomiej Zolnierkiewicz
28657c30 1c46f4e4

+1 -2
+1 -2
drivers/video/fbdev/kyro/STG4000InitDevice.c
··· 242 242 { 243 243 u32 F, R, P; 244 244 u16 core_pll = 0, sub; 245 - u32 ulCoreClock; 246 245 u32 tmp; 247 246 u32 ulChipSpeed; 248 247 ··· 279 280 if (ulChipSpeed == 0) 280 281 return -EINVAL; 281 282 282 - ulCoreClock = ProgramClock(REF_FREQ, CORE_PLL_FREQ, &F, &R, &P); 283 + ProgramClock(REF_FREQ, CORE_PLL_FREQ, &F, &R, &P); 283 284 284 285 core_pll |= ((P) | ((F - 2) << 2) | ((R - 2) << 11)); 285 286