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:
parent
103613ceb8
commit
30064ea555
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user