Re: [PATCH v2] uvc: Replace memcpy with struct assignment

2013-01-21 Thread Laurent Pinchart
Hi, On Monday 14 January 2013 15:22:55 Ezequiel Garcia wrote: > 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. > > Cc: Laurent Pinchart > Signed-off-by: Peter Senna Tschudin > Signed-off-by: Ezequiel G

[PATCH v2] uvc: Replace memcpy with struct assignment

2013-01-14 Thread Ezequiel Garcia
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. Cc: Laurent Pinchart Signed-off-by: Peter Senna Tschudin Signed-off-by: Ezequiel Garcia --- Changes from v1: * Replaced a memcpy() in ucv_ctrl_add_info(),