aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorFuqian Huang <[email protected]>2019-07-04 00:27:18 +0800
committerAlex Deucher <[email protected]>2019-07-05 15:54:55 -0500
commitd12c202289b07037da285299b4122fa2072eca96 (patch)
treec158c18f420baa0189ba79d48f704f8b4a9fa5b9 /net/lapb/lapb_subr.c
parenta5b1615529ae088200e6990f3776ff019df672b4 (diff)
drm/amdgpu: Use kmemdup rather than duplicating its implementation
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. Reviewed-by: Christian König <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Fuqian Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions