[PATCH 4/5] ubi: Replace memcpy with struct assignment

Artem Bityutskiy 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!

Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121203/96b951fd/attachment-0001.sig>

More information about the linux-mtd mailing list