[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:
Leandro Lupori 2019-06-11 11:23:15 +00:00
parent 5d8c3a0657
commit 49f10b5181
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348900

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)