Re: [PATCH -next] module: use kmemdup rather than duplicating its implementation

2016-07-18 Thread Rusty Russell
weiyj...@163.com writes: > From: Wei Yongjun > > Use kmemdup rather than duplicating its implementation. > > Generated by: scripts/coccinelle/api/memdup.cocci > > Signed-off-by: Wei Yongjun Hi Wei! This code has been removed by other changes in modules-next, so your very nice cleanup is

[PATCH -next] module: use kmemdup rather than duplicating its implementation

2016-07-13 Thread weiyj_lk
From: Wei Yongjun Use kmemdup rather than duplicating its implementation. Generated by: scripts/coccinelle/api/memdup.cocci Signed-off-by: Wei Yongjun --- kernel/module.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index beaebea