diff options
author | Wen Yang <wen.yang99@zte.com.cn> | 2018-12-06 13:29:10 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-12-07 15:42:18 +0100 |
commit | 0f4bb10857e22a657e6c8cca5d1d54b641e94628 (patch) | |
tree | f586586162695a37e2dba3399503119c5cfa3005 /mm/hugetlb_cgroup.c | |
parent | media: rockchip vpu: remove some unused vars (diff) | |
download | linux-0f4bb10857e22a657e6c8cca5d1d54b641e94628.tar.xz linux-0f4bb10857e22a657e6c8cca5d1d54b641e94628.zip |
media: siano: Use kmemdup instead of duplicating its function
kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.
This issue was detected with the help of coccinelle.
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
CC: linux-kernel@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'mm/hugetlb_cgroup.c')
0 files changed, 0 insertions, 0 deletions