diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index d6de6111bb1f..a8d9f1a29e63 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -362,8 +362,7 @@ intr_setaffinity(int irq, void *m) { struct intr_event *ie; cpuset_t *mask; - u_char cpu; - int n; + int cpu, n; mask = m; cpu = NOCPU; @@ -377,7 +376,7 @@ intr_setaffinity(int irq, void *m) continue; if (cpu != NOCPU) return (EINVAL); - cpu = (u_char)n; + cpu = n; } } ie = intr_lookup(irq);