Skip to content
Commit d27bb024 authored by Li Zetao's avatar Li Zetao Committed by Hans Verkuil
Browse files

media: nxp: Use devm_kmemdup to replace devm_kmalloc + memcpy



Use the helper function devm_kmemdup() rather than duplicating its
implementation, which helps to enhance code readability.

Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 57a3afc5
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