mirror of https://gitee.com/openkylin/linux.git
ab8c31dd8c
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
bmi.c | ||
bmi.h | ||
cfg80211.c | ||
cfg80211.h | ||
common.h | ||
core.c | ||
core.h | ||
debug.c | ||
debug.h | ||
hif-ops.h | ||
hif.c | ||
hif.h | ||
htc-ops.h | ||
htc.h | ||
htc_mbox.c | ||
htc_pipe.c | ||
init.c | ||
main.c | ||
recovery.c | ||
sdio.c | ||
target.h | ||
testmode.c | ||
testmode.h | ||
trace.c | ||
trace.h | ||
txrx.c | ||
usb.c | ||
wmi.c | ||
wmi.h |