devvga: remove unused copy of checkport() function
This commit is contained in:
parent
8ea31ae7b2
commit
8829d51f50
1 changed files with 0 additions and 14 deletions
|
@ -142,20 +142,6 @@ vgaclose(Chan* c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
checkport(int start, int end)
|
|
||||||
{
|
|
||||||
/* standard vga regs are OK */
|
|
||||||
if(start >= 0x2b0 && end <= 0x2df+1)
|
|
||||||
return;
|
|
||||||
if(start >= 0x3c0 && end <= 0x3da+1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(iounused(start, end))
|
|
||||||
return;
|
|
||||||
error(Eperm);
|
|
||||||
}
|
|
||||||
|
|
||||||
static long
|
static long
|
||||||
vgaread(Chan* c, void* a, long n, vlong off)
|
vgaread(Chan* c, void* a, long n, vlong off)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue