[Cocci] [PATCH V2] scripts/coccinelle/misc/memcpy-assign.cocci: Replace memcpy with struct assignment

Michal Marek
2013-02-22T10:25:04Z

On Wed, Jan 23, 2013 at 08:06:30PM -0200, Peter Senna Tschudin wrote:
> There are error-prone memcpy() that can be replaced by struct
> assignment that are type-safe and much easier to read. This semantic
> patch looks for memcpy() that can be replaced by struct assignment.
>
> Inspired by patches sent by Ezequiel Garcia <elezegarcia@gmail.com>
>
> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
> ---
> Changes from V1:
> Updated commit message
> Changed Confidence comment to High on the semantic patch

Applied to kbuild.git#misc, thanks.

Michal