Convert a missed u_char cpu -> int cpu.

This was caught by a gcc build.

Reported by:	luigi
Sponsored by:	Norse Corp, Inc.
This commit is contained in:
Adrian Chadd 2014-10-19 04:38:02 +00:00
parent 99e9de871a
commit 3fe93b946f

View File

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