staging: netlogic: removed 1 multiple assignment checkpatch warning
diff mbox

Message ID 1457688147-8191-1-git-send-email-laerdevstudios@gmail.com
State New
Headers show

Commit Message

laerdevstudios@gmail.com March 11, 2016, 9:22 a.m. UTC
From: Parth Sane <laerdevstudios@gmail.com>

Fixed netlogic checkpatch multiple assignment warning in platform_net.c

Signed-off-by: Parth Sane <laerdevstudios@gmail.com>
---
 drivers/staging/netlogic/platform_net.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Michal Marek March 15, 2016, 4:09 p.m. UTC | #1
This should go to the staging mailing list.

Michal

Dne 11.3.2016 v 10:22 laerdevstudios@gmail.com napsal(a):
> From: Parth Sane <laerdevstudios@gmail.com>
> 
> Fixed netlogic checkpatch multiple assignment warning in platform_net.c
> 
> Signed-off-by: Parth Sane <laerdevstudios@gmail.com>
> ---
>  drivers/staging/netlogic/platform_net.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c
> index 7806c2b..daee1b2 100644
> --- a/drivers/staging/netlogic/platform_net.c
> +++ b/drivers/staging/netlogic/platform_net.c
> @@ -86,7 +86,8 @@ static void xlr_resource_init(struct resource *res, int offset, int irq)
>  
>  	res++;
>  	res->name = "gmac";
> -	res->start = res->end = irq;
> +	res->end = irq;
> +	res->start = res->end;
>  	res->flags = IORESOURCE_IRQ;
>  }
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c
index 7806c2b..daee1b2 100644
--- a/drivers/staging/netlogic/platform_net.c
+++ b/drivers/staging/netlogic/platform_net.c
@@ -86,7 +86,8 @@  static void xlr_resource_init(struct resource *res, int offset, int irq)
 
 	res++;
 	res->name = "gmac";
-	res->start = res->end = irq;
+	res->end = irq;
+	res->start = res->end;
 	res->flags = IORESOURCE_IRQ;
 }