[PATCH] LEON3: coding style clean bsp_irq_fixup()

Gedare Bloom gedare at rtems.org
Mon May 26 18:33:06 UTC 2014


OK to this and the previous one.

On Mon, May 26, 2014 at 12:11 PM, Daniel Hellstrom <daniel at gaisler.com> wrote:
> ---
>  c/src/lib/libbsp/sparc/leon3/include/leon.h |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h
> index f2ac8e0..9bcbe60 100644
> --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h
> +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h
> @@ -130,17 +130,17 @@ extern int LEON3_IrqCtrl_EIrq;
>
>  static __inline__ int bsp_irq_fixup(int irq)
>  {
> -       int eirq, cpu;
> +  int eirq, cpu;
>
> -       if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) {
> -               /* Get interrupt number from IRQ controller */
> -               cpu = _LEON3_Get_current_processor();
> -               eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f;
> -               if (eirq & 0x10)
> -                       irq = eirq;
> -       }
> +  if (LEON3_IrqCtrl_EIrq != 0 && irq == LEON3_IrqCtrl_EIrq) {
> +    /* Get interrupt number from IRQ controller */
> +    cpu = _LEON3_Get_current_processor();
> +    eirq = LEON3_IrqCtrl_Regs->intid[cpu] & 0x1f;
> +    if (eirq & 0x10)
> +      irq = eirq;
> +  }
>
> -       return irq;
> +  return irq;
>  }
>
>  /* Macros used for manipulating bits in LEON3 GP Timer Control Register */
> --
> 1.7.0.4
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel



More information about the devel mailing list