Fixed 1 multiple equals checkpatch warning.
diff mbox

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

Commit Message

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

Comments

laerdevstudios@gmail.com March 11, 2016, 8:49 a.m. UTC | #1
Hi,
Please ignore the previous patch. I’ll be sending in one soon again since the earlier one sent more warning. Apologies for any inconvenience.
Regards,
Parth Sane
> On 11-Mar-2016, at 2:13 PM, laerdevstudios@gmail.com wrote:
> 
> From: Parth Sane <laerdevstudios@gmail.com>
> 
> diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c
> index 7806c2b..de2c3cb 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;
> }
> 
> --
> 2.1.4
>

Patch
diff mbox

diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c
index 7806c2b..de2c3cb 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;
 }