mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 02:01:05 +07:00
8ba6220fe3
This kind of memcpy() is error-prone. Its replacement with a struct assignment is prefered because it's type-safe and much easier to read. Found by coccinelle. Hand patched and reviewed. Tested by compilation only. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier struct_name; struct struct_name to; struct struct_name from; expression E; @@ -memcpy(&(to), &(from), E); +to = from; // </smpl> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
cx25840 | ||
m5mols | ||
smiapp | ||
soc_camera | ||
ad9389b.c | ||
adp1653.c | ||
adv7170.c | ||
adv7175.c | ||
adv7180.c | ||
adv7183_regs.h | ||
adv7183.c | ||
adv7343_regs.h | ||
adv7343.c | ||
adv7393_regs.h | ||
adv7393.c | ||
adv7604.c | ||
ak881x.c | ||
aptina-pll.c | ||
aptina-pll.h | ||
as3645a.c | ||
bt819.c | ||
bt856.c | ||
bt866.c | ||
btcx-risc.c | ||
btcx-risc.h | ||
cs53l32a.c | ||
cs5345.c | ||
cx2341x.c | ||
ir-kbd-i2c.c | ||
Kconfig | ||
ks0127.c | ||
ks0127.h | ||
m52790.c | ||
Makefile | ||
msp3400-driver.c | ||
msp3400-driver.h | ||
msp3400-kthreads.c | ||
mt9m032.c | ||
mt9p031.c | ||
mt9t001.c | ||
mt9v011.c | ||
mt9v032.c | ||
noon010pc30.c | ||
ov7670.c | ||
s5k4ecgx.c | ||
s5k6aa.c | ||
saa711x_regs.h | ||
saa717x.c | ||
saa6588.c | ||
saa7110.c | ||
saa7115.c | ||
saa7127.c | ||
saa7185.c | ||
saa7191.c | ||
saa7191.h | ||
smiapp-pll.c | ||
smiapp-pll.h | ||
sr030pc30.c | ||
tcm825x.c | ||
tcm825x.h | ||
tda7432.c | ||
tda9840.c | ||
tea6415c.c | ||
tea6415c.h | ||
tea6420.c | ||
tea6420.h | ||
ths7303.c | ||
tlv320aic23b.c | ||
tvaudio.c | ||
tveeprom.c | ||
tvp514x_regs.h | ||
tvp514x.c | ||
tvp5150_reg.h | ||
tvp5150.c | ||
tvp7002_reg.h | ||
tvp7002.c | ||
upd64031a.c | ||
upd64083.c | ||
vp27smpx.c | ||
vpx3220.c | ||
vs6624_regs.h | ||
vs6624.c | ||
wm8739.c | ||
wm8775.c |