[firefly] [PATCH] staging: gdm724x: replace memcpy with struct assignment

Dragos Foianu dragos.foianu at gmail.com
Thu Oct 24 21:54:00 EEST 2013

> Looks good to me. I don't know exactly why assingment is this better
> than memcpy :).

I'm guessing it's better because the code becomes clearer and easier to
understand. It also eliminates the possibility of human error when
specifying the number of bytes to memcpy.

The actual assembly code generated is dependent on the compiler. Given a
specific definition of the structure, the compiler may choose to handle the
assignment the same way it handles a memcpy.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rosedu.org/pipermail/firefly/attachments/20131024/aff32645/attachment.html>

More information about the firefly mailing list