projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ada3678
)
[media] staging: media: cxd2099: remove memcpy of similar structure variables
author
Devendra Naga
<
[email protected]
>
Sun, 5 Aug 2012 19:40:02 +0000
(16:40 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sun, 12 Aug 2012 10:29:43 +0000
(07:29 -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
patch
|
blob
|
history
diff --git
a/drivers/staging/media/cxd2099/cxd2099.c
b/drivers/staging/media/cxd2099/cxd2099.c
index 4f2235f2153d6f37cddc0401cc8ec4e62aa75570..0ff19724992fbe5de688620d22a4396ea0f381ef 100644
(file)
--- 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);