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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux