All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Slark Xiao <slark_xiao@163.com>
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] USB: serial: use kmemdup instead of kmalloc + memcpy
Date: Wed, 22 Jun 2022 08:58:24 +0200	[thread overview]
Message-ID: <YrK9kKawH06f9T4h@hovoldconsulting.com> (raw)
In-Reply-To: <20220622062113.8762-1-slark_xiao@163.com>

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

      reply	other threads:[~2022-06-22  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22  6:21 [PATCH v2] USB: serial: use kmemdup instead of kmalloc + memcpy Slark Xiao
2022-06-22  6:58 ` Johan Hovold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YrK9kKawH06f9T4h@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=slark_xiao@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.