Re: [PATCH v2] crypto: caam: - Use kmemdup() function

2018-04-20 Thread Herbert Xu
On Mon, Apr 16, 2018 at 01:05:01PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Use kmemdup() rather than duplicating its implementation. > > By usign kmemdup() we can also get rid of the 'val' variable. > > Detected with Coccinelle script. > > Signed-off-by: Fabio Estevam Patch app

Re: [PATCH v2] crypto: caam: - Use kmemdup() function

2018-04-16 Thread Horia Geantă
On 4/16/2018 7:07 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Use kmemdup() rather than duplicating its implementation. > > By usign kmemdup() we can also get rid of the 'val' variable. > > Detected with Coccinelle script. > > Signed-off-by: Fabio Estevam Reviewed-by: Horia Geantă Th

[PATCH v2] crypto: caam: - Use kmemdup() function

2018-04-16 Thread Fabio Estevam
From: Fabio Estevam Use kmemdup() rather than duplicating its implementation. By usign kmemdup() we can also get rid of the 'val' variable. Detected with Coccinelle script. Signed-off-by: Fabio Estevam --- Changes since v1: - Drop the val variable and return kmemdup() directly. drivers/cryp