Skip to content
Commit 16fae979 authored by Chen Jiahao's avatar Chen Jiahao Committed by Hans Verkuil
Browse files

media: usb: siano: Use kmemdup to simplify kmalloc and memcpy logic



Using kmemdup() helper function rather than implementing it again
with kmalloc() + memcpy(), which improves the code readability.

Signed-off-by: default avatarChen Jiahao <chenjiahao16@huawei.com>
Reviewed-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent e2f01278
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment