Skip to content
Commit d6c4dc3b authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Johan Hovold
Browse files

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: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent d8d841e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment