[firefly] [PATCH] staging: gdm724x: replace memcpy with struct assignment
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...
More information about the firefly