[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACvgo52wa8FzddSB09WoBCfR=Jdb-AD1G3_siB7c2nWWtmdpGg@mail.gmail.com>
Date: Wed, 3 Jul 2019 16:21:45 +0100
From: Emil Velikov <emil.l.velikov@...il.com>
To: Fuqian Huang <huangfq.daxian@...il.com>
Cc: David Zhou <David1.Zhou@....com>, David Airlie <airlied@...ux.ie>,
"Linux-Kernel@...r. Kernel. Org" <linux-kernel@...r.kernel.org>,
amd-gfx mailing list <amd-gfx@...ts.freedesktop.org>,
Leo Li <sunpeng.li@....com>,
ML dri-devel <dri-devel@...ts.freedesktop.org>,
Daniel Vetter <daniel@...ll.ch>,
Alex Deucher <alexander.deucher@....com>,
Harry Wentland <harry.wentland@....com>,
Christian König <christian.koenig@....com>
Subject: Re: [PATCH 06/30] drm/amdgpu: Use kmemdup rather than duplicating its implementation
On Wed, 3 Jul 2019 at 14:15, Fuqian Huang <huangfq.daxian@...il.com> wrote:
>
> kmemdup is introduced to duplicate a region of memory in a neat way.
> Rather than kmalloc/kzalloc + memset, 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 + memset.
>
> Signed-off-by: Fuqian Huang <huangfq.daxian@...il.com>
Fuqian please add reviewed-by and other tags when sending new revisions.
Fwiw the patch is:
Reviewed-by: Emil Velikov <emil.velikov@...labora.com>
-Emil
Powered by blists - more mailing lists