control: Narrow the scope of local variable.
This commit is contained in:
parent
ca9657baf1
commit
9af1b1a720
|
@ -282,9 +282,9 @@ uint32_t ControlVideo::read(uint32_t rgn_start, uint32_t offset, int size)
|
|||
return 0;
|
||||
}
|
||||
|
||||
uint32_t value;
|
||||
|
||||
if (rgn_start == this->regs_base) {
|
||||
uint32_t value;
|
||||
|
||||
switch (offset >> 4) {
|
||||
case ControlRegs::CUR_LINE:
|
||||
value = 0; // current active video line should relate this to refresh rate
|
||||
|
|
Loading…
Reference in New Issue