GetAccelPitchValues: mark accelWidths as const

Suggested by cppcheck:

alp_driver.c:413:6: style: Variable 'accelWidths' can be declared
  with const [constVariable]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith
2023-05-07 12:09:34 -07:00
parent c5f3f665a2
commit 3c32eedb0c

View File

@@ -410,11 +410,11 @@ GetAccelPitchValues(ScrnInfoPtr pScrn)
/* The only line pitches the accelerator supports */
#if 1
int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
const int accelWidths[] = { 640, 768, 800, 960, 1024, 1152, 1280,
1600, 1920, 2048, 0 };
#else
int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
1280, 1536, 1600, 1920, 2048, 0 };
const int accelWidths[] = { 512, 576, 640, 768, 800, 960, 1024, 1152,
1280, 1536, 1600, 1920, 2048, 0 };
#endif
switch (pCir->Chipset) {