summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-06-29 18:26:07 +0000
committerbz <bz@FreeBSD.org>2008-06-29 18:26:07 +0000
commit30064ea5558fbb0f72aa53243c1f46392ce135f2 (patch)
tree728a4c35bbb4b0158ae6dbb71e7a8abc64966da1 /sys/kern/kern_intr.c
parent103613ceb8c16d04226de8ddb4127011e7ccec2e (diff)
downloadFreeBSD-src-30064ea5558fbb0f72aa53243c1f46392ce135f2.zip
FreeBSD-src-30064ea5558fbb0f72aa53243c1f46392ce135f2.tar.gz
Remove an unneeded error variable to make clear that if reaching
the end of the function we never return an error.
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 5e464f9..78ae6010 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -352,11 +352,9 @@ intr_setaffinity(int irq, void *m)
struct intr_event *ie;
cpuset_t *mask;
u_char cpu;
- int error;
int n;
mask = m;
- error = 0;
cpu = NOCPU;
/*
* If we're setting all cpus we can unbind. Otherwise make sure
@@ -375,7 +373,7 @@ intr_setaffinity(int irq, void *m)
if (ie == NULL)
return (ESRCH);
intr_event_bind(ie, cpu);
- return (error);
+ return (0);
}
int
OpenPOWER on IntegriCloud