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 'ulBestVCO'

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

drivers/video/fbdev/kyro/STG4000InitDevice.c: In function
‘ProgramClock’:
drivers/video/fbdev/kyro/STG4000InitDevice.c:123:6: warning: variable
‘ulBestVCO’ set but not used [-Wunused-but-set-variable]
123 | u32 ulBestVCO = 0, ulBestClk = 0, ulBestScore = 0;
| ^~~~~~~~~

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/20200827130008.428706-1-yanaijie@huawei.com

authored by

Jason Yan and committed by
Bartlomiej Zolnierkiewicz
1c46f4e4 6bfea83e

+1 -3
+1 -3
drivers/video/fbdev/kyro/STG4000InitDevice.c
··· 120 120 { 121 121 u32 R = 0, F = 0, OD = 0, ODIndex = 0; 122 122 u32 ulBestR = 0, ulBestF = 0, ulBestOD = 0; 123 - u32 ulBestVCO = 0, ulBestClk = 0, ulBestScore = 0; 123 + u32 ulBestClk = 0, ulBestScore = 0; 124 124 u32 ulScore, ulPhaseScore, ulVcoScore; 125 125 u32 ulTmp = 0, ulVCO; 126 126 u32 ulScaleClockReq, ulMinClock, ulMaxClock; ··· 189 189 ulScore = ulPhaseScore + ulVcoScore; 190 190 191 191 if (!ulBestScore) { 192 - ulBestVCO = ulVCO; 193 192 ulBestOD = OD; 194 193 ulBestF = F; 195 194 ulBestR = R; ··· 205 206 but we shall keep this code in case new restrictions come into play 206 207 --------------------------------------------------------------------------*/ 207 208 if ((ulScore >= ulBestScore) && (OD > 0)) { 208 - ulBestVCO = ulVCO; 209 209 ulBestOD = OD; 210 210 ulBestF = F; 211 211 ulBestR = R;