USB: serial: cp210x: use kmemdup
Use kmemdup when some other buffer is immediately copied into allocated region. It replaces call to allocation followed by memcpy, by a single call to kmemdup. Signed-off-by: NMuhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: NJohan Hovold <johan@kernel.org>
Showing
想要评论请 注册 或 登录