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
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
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