mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
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
ba931c0855
commit
04a58b9d5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180099
|
@ -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 a new issue