Messages in this thread | | | Date | Wed, 22 Jun 2022 08:58:24 +0200 | From | Johan Hovold <> | Subject | Re: [PATCH v2] USB: serial: use kmemdup instead of kmalloc + memcpy |
| |
On Wed, Jun 22, 2022 at 02:21:13PM +0800, Slark Xiao wrote: > For code neat purpose, we can use kmemdup to replace > kmalloc + memcpy. > > Signed-off-by: Slark Xiao <slark_xiao@163.com> > --- > v2: Add garmin_gps.c > --- > drivers/usb/serial/garmin_gps.c | 4 +--- > drivers/usb/serial/opticon.c | 4 +--- > drivers/usb/serial/sierra.c | 4 +--- > 3 files changed, 3 insertions(+), 9 deletions(-)
Applied for -next, thanks.
Johan
| |