Re: [PATCH v2] USB: serial: use kmemdup instead of kmalloc + memcpy

From: Johan Hovold
Date: Wed Jun 22 2022 - 02:59:01 EST


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@xxxxxxx>
> ---
> 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