[PATCH 4/5] ubi: Replace memcpy with struct assignment
dedekind1 at gmail.com
Mon Dec 3 06:54:38 EST 2012
On Fri, 2012-11-23 at 08:58 -0300, 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.
> 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/)
Pushed to linux-ubi.git, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the linux-mtd