Ezequiel Garcia
8ba6220fe3
[media] cx25840: Replace memcpy with struct assignment
...
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>
2012-12-27 18:46:22 -02:00
..
2012-12-14 10:03:23 -08:00
2012-12-17 10:04:27 -08:00
2012-12-15 12:37:18 -08:00
2012-12-19 14:53:53 -08:00
2012-12-20 18:50:02 -05:00
2012-12-19 12:47:41 -08:00
2012-12-20 14:00:13 -08:00
2012-12-12 18:07:07 -08:00
2012-12-16 15:23:37 -08:00
2012-12-20 08:37:05 -08:00
2012-12-19 12:47:41 -08:00
2012-12-14 14:54:26 -08:00
2012-12-11 12:45:35 -08:00
2012-12-12 12:05:15 -08:00
2012-12-18 09:58:09 -08:00
2012-12-07 23:13:36 +01:00
2012-12-17 17:15:13 -08:00
2012-12-14 14:27:45 -08:00
2012-12-13 12:00:02 -08:00
2012-12-20 17:40:19 -08:00
2012-12-19 22:15:14 +00:00
2012-12-19 20:24:25 -08:00
2012-12-13 19:22:22 -08:00
2012-12-19 22:17:02 +01:00
2012-12-18 16:51:10 -08:00
2012-12-16 18:55:20 -08:00
2012-12-21 16:40:26 -08:00
2012-12-19 12:56:42 -08:00
2012-12-20 10:07:25 -08:00
2012-12-11 14:08:47 -08:00
2012-12-14 14:42:53 -08:00
2012-12-14 13:14:07 -05:00
2012-12-15 12:52:42 -08:00
2012-12-18 15:19:06 +10:30
2012-12-18 09:58:09 -08:00
2012-12-21 17:08:06 -08:00
2012-12-27 18:46:22 -02:00
2012-12-18 15:02:12 -08:00
2012-12-20 07:21:54 -08:00
2012-12-21 17:10:29 -08:00
2012-12-16 18:55:20 -08:00
2012-12-20 07:39:03 -08:00
2012-12-21 16:40:26 -08:00
2012-12-19 10:58:53 +00:00
2012-12-13 14:20:19 -08:00
2012-12-12 11:45:16 -08:00
2012-12-18 19:00:25 -08:00
2012-12-17 17:15:14 -08:00
2012-12-11 13:13:55 -08:00
2012-12-19 08:14:08 -08:00
2012-12-12 18:07:07 -08:00
2012-12-19 08:19:07 -08:00
2012-12-11 13:13:55 -08:00
2012-12-13 12:00:02 -08:00
2012-12-13 12:00:02 -08:00
2012-12-18 15:20:36 +10:30
2012-12-20 17:40:20 -08:00
2012-12-13 14:20:19 -08:00
2012-12-21 16:40:26 -08:00
2012-12-19 15:11:41 +00:00
2012-12-14 14:27:45 -08:00
2012-12-27 12:44:11 -02:00
2012-12-15 14:25:10 -08:00
2012-12-13 12:00:02 -08:00
2012-12-16 11:28:10 -08:00
2012-12-12 12:05:15 -08:00
2012-12-17 17:15:13 -08:00
2012-12-07 13:43:51 -07:00
2012-12-15 14:25:10 -08:00
2012-12-18 15:02:11 -08:00
2012-12-18 09:58:09 -08:00
2012-12-20 08:37:05 -08:00
2012-12-16 15:23:37 -08:00
2012-12-19 22:25:10 +01:00
2012-12-16 17:39:14 -08:00