Patchwork [trivial] ARM: Remove redundant ';' from avic_irq_set_priority()

login
register
mail settings
Submitter Jesper Juhl
Date Feb. 26, 2012, 10:09 p.m.
Message ID <alpine.LNX.2.00.1202262307210.6089@swampdragon.chaosbits.net>
Download mbox | patch
Permalink /patch/143119/
State New
Headers show

Comments

Jesper Juhl - Feb. 26, 2012, 10:09 p.m.
One semi-colon at the end of the return statement is sufficient.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
 arch/arm/plat-mxc/avic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Sascha Hauer - Feb. 27, 2012, 9:24 a.m.
On Sun, Feb 26, 2012 at 11:09:40PM +0100, Jesper Juhl wrote:
> One semi-colon at the end of the return statement is sufficient.
> 
> Signed-off-by: Jesper Juhl <jj@chaosbits.net>

Applied

Sascha

> ---
>  arch/arm/plat-mxc/avic.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/plat-mxc/avic.c b/arch/arm/plat-mxc/avic.c
> index 55f1569..689f81f 100644
> --- a/arch/arm/plat-mxc/avic.c
> +++ b/arch/arm/plat-mxc/avic.c
> @@ -60,7 +60,7 @@ static int avic_irq_set_priority(unsigned char irq, unsigned char prio)
>  	unsigned int mask = 0x0F << irq % 8 * 4;
>  
>  	if (irq >= AVIC_NUM_IRQS)
> -		return -EINVAL;;
> +		return -EINVAL;
>  
>  	temp = __raw_readl(avic_base + AVIC_NIPRIORITY(irq / 8));
>  	temp &= ~mask;
> -- 
> 1.7.9.2
> 
> 
> -- 
> Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
> Don't top-post http://www.catb.org/jargon/html/T/top-post.html
> Plain text mails only, please.
> 
>

Patch

diff --git a/arch/arm/plat-mxc/avic.c b/arch/arm/plat-mxc/avic.c
index 55f1569..689f81f 100644
--- a/arch/arm/plat-mxc/avic.c
+++ b/arch/arm/plat-mxc/avic.c
@@ -60,7 +60,7 @@  static int avic_irq_set_priority(unsigned char irq, unsigned char prio)
 	unsigned int mask = 0x0F << irq % 8 * 4;
 
 	if (irq >= AVIC_NUM_IRQS)
-		return -EINVAL;;
+		return -EINVAL;
 
 	temp = __raw_readl(avic_base + AVIC_NIPRIORITY(irq / 8));
 	temp &= ~mask;