2016-03-11 09:16:16

by Parth Sane

[permalink] [raw]
Subject: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

From: Parth Sane <[email protected]>

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;
}

--
2.1.4


2016-03-11 09:19:07

by Parth Sane

[permalink] [raw]
Subject: Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

Hi,
I forgot to add the signed off part in the patch please ignore the previous patches I have sent. Please bear with a kernel newbie.
Regards,
Parth Sane
> On 11-Mar-2016, at 2:45 PM, [email protected] wrote:
>
> From: Parth Sane <[email protected]>
>
> 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;
> }
>
> --
> 2.1.4
>


Attachments:
signature.asc (842.00 B)
Message signed with OpenPGP using GPGMail