diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-05-19 19:34:36 +0530 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2016-07-15 14:23:21 +0200 |
commit | d6c4dc3bf4e934fae7002f296aaef4b578f7ca14 (patch) | |
tree | bbd9f52d4c241faff29e296b12faf2fbf040b8d8 /drivers/usb/serial/option.c | |
parent | d8d841e8332779fae2b18420d39ef407ea3729da (diff) |
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: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/option.c')
0 files changed, 0 insertions, 0 deletions