This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] staging: media: cxd2099: remove memcpy of similar structure 
variables
Author:  Devendra Naga <[email protected]>
Date:    Sun Aug 5 16:40:02 2012 -0300

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 <[email protected]>
Signed-off-by: Devendra Naga <[email protected]>
Cc: Ralph Metzler <[email protected]>
Cc: Oliver Endriss <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/cxd2099/cxd2099.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=8d9b2584ffd270da14671ff6a2b25dd40dcc41de

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

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to