Remove an unneeded error variable to make clear that if reaching

the end of the function we never return an error.
This commit is contained in:
Bjoern A. Zeeb 2008-06-29 18:26:07 +00:00
parent ba931c0855
commit 04a58b9d5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180099

View file

@ -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