Commit 1c46f4e4 authored by Jason Yan's avatar Jason Yan Committed by Bartlomiej Zolnierkiewicz

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827130008.428706-1-yanaijie@huawei.com
parent 6bfea83e
...@@ -120,7 +120,7 @@ u32 ProgramClock(u32 refClock, ...@@ -120,7 +120,7 @@ u32 ProgramClock(u32 refClock,
{ {
u32 R = 0, F = 0, OD = 0, ODIndex = 0; u32 R = 0, F = 0, OD = 0, ODIndex = 0;
u32 ulBestR = 0, ulBestF = 0, ulBestOD = 0; u32 ulBestR = 0, ulBestF = 0, ulBestOD = 0;
u32 ulBestVCO = 0, ulBestClk = 0, ulBestScore = 0; u32 ulBestClk = 0, ulBestScore = 0;
u32 ulScore, ulPhaseScore, ulVcoScore; u32 ulScore, ulPhaseScore, ulVcoScore;
u32 ulTmp = 0, ulVCO; u32 ulTmp = 0, ulVCO;
u32 ulScaleClockReq, ulMinClock, ulMaxClock; u32 ulScaleClockReq, ulMinClock, ulMaxClock;
...@@ -189,7 +189,6 @@ u32 ProgramClock(u32 refClock, ...@@ -189,7 +189,6 @@ u32 ProgramClock(u32 refClock,
ulScore = ulPhaseScore + ulVcoScore; ulScore = ulPhaseScore + ulVcoScore;
if (!ulBestScore) { if (!ulBestScore) {
ulBestVCO = ulVCO;
ulBestOD = OD; ulBestOD = OD;
ulBestF = F; ulBestF = F;
ulBestR = R; ulBestR = R;
...@@ -206,7 +205,6 @@ u32 ProgramClock(u32 refClock, ...@@ -206,7 +205,6 @@ u32 ProgramClock(u32 refClock,
but we shall keep this code in case new restrictions come into play but we shall keep this code in case new restrictions come into play
--------------------------------------------------------------------------*/ --------------------------------------------------------------------------*/
if ((ulScore >= ulBestScore) && (OD > 0)) { if ((ulScore >= ulBestScore) && (OD > 0)) {
ulBestVCO = ulVCO;
ulBestOD = OD; ulBestOD = OD;
ulBestF = F; ulBestF = F;
ulBestR = R; ulBestR = R;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment