diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-22 16:56:04 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-22 16:56:04 +0100 |
commit | 3ab80c9fe0fe4cfe91c0b6004db986f2e72bf5e6 (patch) | |
tree | f7f8fbbf694687f54a629dcc46158b55a30f239a /sys/src/9/pc/trap.c | |
parent | c404fd9d6f46f90e4420d0b268215ef719e25796 (diff) |
pc, pc64, xen: change return type of intrdisable() to void
intrdisable() will always be able to unregister the interrupt
now, so there is no reason to have it return an error value.
all drivers except uart8250 already assumed it to never fail
and theres no need to maintain that complexity.
Diffstat (limited to 'sys/src/9/pc/trap.c')
-rw-r--r-- | sys/src/9/pc/trap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/9/pc/trap.c b/sys/src/9/pc/trap.c index 1eef90ea9..04d4b46da 100644 --- a/sys/src/9/pc/trap.c +++ b/sys/src/9/pc/trap.c @@ -76,7 +76,7 @@ intrenable(int irq, void (*f)(Ureg*, void*), void* a, int tbdf, char *name) iunlock(&vctllock); } -int +void intrdisable(int irq, void (*f)(Ureg *, void *), void *a, int tbdf, char *name) { Vctl **pv, *v; @@ -116,7 +116,6 @@ intrdisable(int irq, void (*f)(Ureg *, void *), void *a, int tbdf, char *name) break; } iunlock(&vctllock); - return 0; } static long |