[PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup

Alan Cox alan at linux.intel.com
Fri Jul 7 11:55:51 UTC 2017


On Fri, 2017-07-07 at 17:20 +0530, Hari Prasath wrote:
> kmemdup can be used to replace kmalloc followed by a memcpy.This was
> pointed out by the coccinelle tool.

And kstrdup could do the job even better I think ?

Alan



More information about the devel mailing list