mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Don't ignore errors from intr_event_add_handler().
CID: 1516 Found by: Coverity Prevent (tm)
This commit is contained in:
parent
1c902cc136
commit
4cbe83eb60
1 changed files with 1 additions and 3 deletions
|
|
@ -234,10 +234,8 @@ inthand_add(const char *name, u_int irq, void (*handler)(void *), void *arg,
|
|||
error = intr_event_add_handler(event, name, handler, arg,
|
||||
intr_priority(flags), flags, cookiep);
|
||||
|
||||
if ((flags & INTR_FAST) == 0 || error) {
|
||||
if ((flags & INTR_FAST) == 0 || error)
|
||||
intr_setup(irq, sched_ithd, ih, flags);
|
||||
error = 0;
|
||||
}
|
||||
|
||||
if (error)
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue