[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191002041632.202C960A4E@smtp.codeaurora.org>
Date: Wed, 2 Oct 2019 04:16:32 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Fuqian Huang <huangfq.daxian@...il.com>
Cc: unlisted-recipients:; (no To-header on input)
"David S . Miller" <davem@...emloft.net>,
Solomon Peachy <pizza@...ftnet.org>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Fuqian Huang <huangfq.daxian@...il.com>
Subject: Re: [PATCH v2 17/35] net/wireless: Use kmemdup rather than
duplicating its implementation
Fuqian Huang <huangfq.daxian@...il.com> wrote:
> kmemdup is introduced to duplicate a region of memory in a neat way.
> Rather than kmalloc/kzalloc + memcpy, which the programmer needs to
> write the size twice (sometimes lead to mistakes), kmemdup improves
> readability, leads to smaller code and also reduce the chances of mistakes.
> Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy.
>
> Signed-off-by: Fuqian Huang <huangfq.daxian@...il.com>
Patch applied to wireless-drivers-next.git, thanks.
ab8c31dd8c8a net/wireless: Use kmemdup rather than duplicating its implementation
--
https://patchwork.kernel.org/patch/11029833/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists