summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-04 00:29:34 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-10-02 07:16:10 +0300
commitab8c31dd8c8accea11bd59075bca711579512adc (patch)
tree25fa844f1e9561b15632cdb4876070a13dfda2b1 /init
parent0a3ce169476feca7869255c681884ed227a319c8 (diff)
net/wireless: 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. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions