Anders Blomdell kirjoitti:
In the following code (ppc), shouldn't first be either declared static or deleted? To me it looks like first is always equal to one when the else clause is evaluated.

You're right. "first" doesn't need to be there at all, it's probably an old copy of something in the kernel.

asmlinkage int __ipipe_grab_irq(struct pt_regs *regs)
        extern int ppc_spurious_interrupts;
        int irq, first = 1;

        if ((irq = ppc_md.get_irq(regs)) >= 0) {
                __ipipe_handle_irq(irq, regs);
                first = 0;
        } else if (irq != -2 && first)


        return (ipipe_percpu_domain[cpuid] == ipipe_root_domain &&


Anders Blomdell

Xenomai-core mailing list

Xenomai-core mailing list

Reply via email to