* [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables
@ 2012-08-05 20:40 Devendra Naga
2012-08-05 21:51 ` Ezequiel Garcia
0 siblings, 1 reply; 5+ messages in thread
From: Devendra Naga @ 2012-08-05 20:40 UTC (permalink / raw)
To: linux-media, devel; +Cc: Mauro Carvalho Chehab, Ezequiel Garcia, Devendra Naga
structure variables can be assigned, no memcpy needed,
remove the memcpy and use assignment for the cfg and en variables.
Tested by Compilation Only
Suggested-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
---
drivers/staging/media/cxd2099/cxd2099.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c
index 4f2235f..0ff1972 100644
--- a/drivers/staging/media/cxd2099/cxd2099.c
+++ b/drivers/staging/media/cxd2099/cxd2099.c
@@ -696,13 +696,13 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
return NULL;
mutex_init(&ci->lock);
- memcpy(&ci->cfg, cfg, sizeof(struct cxd2099_cfg));
+ ci->cfg = *cfg;
ci->i2c = i2c;
ci->lastaddress = 0xff;
ci->clk_reg_b = 0x4a;
ci->clk_reg_f = 0x1b;
- memcpy(&ci->en, &en_templ, sizeof(en_templ));
+ ci->en = en_templ;
ci->en.data = ci;
init(ci);
printk(KERN_INFO "Attached CXD2099AR at %02x\n", ci->cfg.adr);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables
2012-08-05 20:40 [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables Devendra Naga
@ 2012-08-05 21:51 ` Ezequiel Garcia
2012-08-06 5:28 ` Devendra Naga
0 siblings, 1 reply; 5+ messages in thread
From: Ezequiel Garcia @ 2012-08-05 21:51 UTC (permalink / raw)
To: Devendra Naga; +Cc: linux-media, devel, Mauro Carvalho Chehab
Hi Devendra,
Thanks for the patch,
On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga
<develkernel412222@gmail.com> wrote:
> structure variables can be assigned, no memcpy needed,
> remove the memcpy and use assignment for the cfg and en variables.
>
> Tested by Compilation Only
>
> Suggested-by: Ezequiel Garcia <elezegarcia@gmail.com>
I'm not sure this is completely valid or useful.
If you read Documentation/SubmittingPatches (which you should)
you will find references to Acked-by, Reported-by, Tested-by,
but not this one.
You don't need to give me credit for the patch:
it's *your* patch, all I did was a very simple suggestion :-)
Plus, there was some discussion called "Kernel Komedians" [1] where
some developer expressed their concern on the number of weird signatures
that have recently appeared.
Regards,
Ezequiel.
[1] http://lwn.net/Articles/503829/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables
2012-08-05 21:51 ` Ezequiel Garcia
@ 2012-08-06 5:28 ` Devendra Naga
2012-08-06 10:40 ` Ezequiel Garcia
0 siblings, 1 reply; 5+ messages in thread
From: Devendra Naga @ 2012-08-06 5:28 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: linux-media, devel, Mauro Carvalho Chehab
Hi Ezequiel,
On Mon, Aug 6, 2012 at 3:36 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> Hi Devendra,
>
> Thanks for the patch,
>
> On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga
> <develkernel412222@gmail.com> wrote:
>> structure variables can be assigned, no memcpy needed,
>> remove the memcpy and use assignment for the cfg and en variables.
>>
>> Tested by Compilation Only
>>
>> Suggested-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> I'm not sure this is completely valid or useful.
>
> If you read Documentation/SubmittingPatches (which you should)
> you will find references to Acked-by, Reported-by, Tested-by,
> but not this one.
>
> You don't need to give me credit for the patch:
> it's *your* patch, all I did was a very simple suggestion :-)
>
Ok. I will remove the Suggested-by line and send out the patch again
with PATCH RESEND subject line.
Is it ok?
> Plus, there was some discussion called "Kernel Komedians" [1] where
> some developer expressed their concern on the number of weird signatures
> that have recently appeared.
>
> Regards,
> Ezequiel.
>
> [1] http://lwn.net/Articles/503829/
I will read out the Documentation and will try to send patches accordingly,
Thanks a lot for your help and your time,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables
2012-08-06 5:28 ` Devendra Naga
@ 2012-08-06 10:40 ` Ezequiel Garcia
2012-08-12 10:30 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 5+ messages in thread
From: Ezequiel Garcia @ 2012-08-06 10:40 UTC (permalink / raw)
To: Devendra Naga; +Cc: linux-media, devel, Mauro Carvalho Chehab
On Mon, Aug 6, 2012 at 2:28 AM, Devendra Naga
<develkernel412222@gmail.com> wrote:
> Hi Ezequiel,
>
> On Mon, Aug 6, 2012 at 3:36 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
>> Hi Devendra,
>>
>> Thanks for the patch,
>>
>> On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga
>> <develkernel412222@gmail.com> wrote:
>>> structure variables can be assigned, no memcpy needed,
>>> remove the memcpy and use assignment for the cfg and en variables.
>>>
>>> Tested by Compilation Only
>>>
>>> Suggested-by: Ezequiel Garcia <elezegarcia@gmail.com>
>>
>> I'm not sure this is completely valid or useful.
>>
>> If you read Documentation/SubmittingPatches (which you should)
>> you will find references to Acked-by, Reported-by, Tested-by,
>> but not this one.
>>
>> You don't need to give me credit for the patch:
>> it's *your* patch, all I did was a very simple suggestion :-)
>>
> Ok. I will remove the Suggested-by line and send out the patch again
> with PATCH RESEND subject line.
> Is it ok?
>
I'm not entirely sure. Perhaps you can leave it as it is, and let
Mauro remove that line.
Regards,
Ezequiel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables
2012-08-06 10:40 ` Ezequiel Garcia
@ 2012-08-12 10:30 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2012-08-12 10:30 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: Devendra Naga, linux-media, devel, Mauro Carvalho Chehab
Em 06-08-2012 07:40, Ezequiel Garcia escreveu:
> On Mon, Aug 6, 2012 at 2:28 AM, Devendra Naga
> <develkernel412222@gmail.com> wrote:
>> Hi Ezequiel,
>>
>> On Mon, Aug 6, 2012 at 3:36 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
>>> Hi Devendra,
>>>
>>> Thanks for the patch,
>>>
>>> On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga
>>> <develkernel412222@gmail.com> wrote:
>>>> structure variables can be assigned, no memcpy needed,
>>>> remove the memcpy and use assignment for the cfg and en variables.
>>>>
>>>> Tested by Compilation Only
>>>>
>>>> Suggested-by: Ezequiel Garcia <elezegarcia@gmail.com>
>>>
>>> I'm not sure this is completely valid or useful.
>>>
>>> If you read Documentation/SubmittingPatches (which you should)
>>> you will find references to Acked-by, Reported-by, Tested-by,
>>> but not this one.
>>>
>>> You don't need to give me credit for the patch:
>>> it's *your* patch, all I did was a very simple suggestion :-)
>>>
>> Ok. I will remove the Suggested-by line and send out the patch again
>> with PATCH RESEND subject line.
>> Is it ok?
>>
>
> I'm not entirely sure. Perhaps you can leave it as it is, and let
> Mauro remove that line.
I prefer keeping it, to preserve this patch history.
Regards,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-12 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 20:40 [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables Devendra Naga
2012-08-05 21:51 ` Ezequiel Garcia
2012-08-06 5:28 ` Devendra Naga
2012-08-06 10:40 ` Ezequiel Garcia
2012-08-12 10:30 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).