Skip to contentSkip to conversation

staging: netlogic: removed 1 multiple assignment checkpatch warning

PATCH In review [email protected] 2 participants 2 messages Mar 11, 2016 – Mar 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: netlogic: removed 1 multiple assignment checkpatch warning

From: Parth Sane <[email protected]>

Fixed netlogic checkpatch multiple assignment warning in platform_net.c

---
 drivers/staging/netlogic/platform_net.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/netlogic/platform_net.c +2 -1
index 7806c2b..daee1b2 100644
@@ -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;
 }
 
Signature · 1 line
2.1.4
#1 lore raw

This should go to the staging mailing list.

Michal

Dne 11.3.2016 v 10:22 [email protected] napsal(a):

Quoted 24 lines

From: Parth Sane <[email protected]>

Fixed netlogic checkpatch multiple assignment warning in platform_net.c

---
 drivers/staging/netlogic/platform_net.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/netlogic/platform_net.c +2 -1
index 7806c2b..daee1b2 100644
@@ -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;
 }