[PPC] Fix build error when POWERNV is disabled

When building a kernel supporting PSERIES but not POWERNV,
the compiler would complain about an error variable being
possibly used before being initialized.

In practice, however, this should never happen. In any case, it
is now initialized to an error value.
This commit is contained in:
luporl 2019-06-11 11:23:15 +00:00
parent df2dd5d78a
commit b88349203f

View File

@ -324,7 +324,7 @@ xicp_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv)
struct xicp_softc *sc = device_get_softc(dev);
struct xicp_intvec *iv;
cell_t status, cpu;
int ncpus, i, error;
int ncpus, i, error = -1;
/* Ignore IPIs */
if (irq == MAX_XICP_IRQS)