summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-08-05 16:40:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-12 07:29:43 -0300
commit8d9b2584ffd270da14671ff6a2b25dd40dcc41de (patch)
treeec7aa4ec849b64cf2d8b86c32cf527aeb57961df /drivers/staging
parentada3678c6a9a0c404acf15e98679315b29689b73 (diff)
downloadblackbird-op-linux-8d9b2584ffd270da14671ff6a2b25dd40dcc41de.tar.gz
blackbird-op-linux-8d9b2584ffd270da14671ff6a2b25dd40dcc41de.zip
[media] staging: media: cxd2099: remove memcpy of similar structure variables
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> Cc: Ralph Metzler <rjkm@metzlerbros.de> Cc: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/cxd2099/cxd2099.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c
index 4f2235f2153d..0ff19724992f 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);
OpenPOWER on IntegriCloud