summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-03 18:28:48 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-14 10:03:11 +0200
commit48059784ebac75a98e024c29ab301e05a8b8012f (patch)
tree23cc37e91ad214bd5db1c87d14283f7ca72865b5 /drivers/extcon
parentmedia: media/usb: Use kmemdup rather than duplicating its implementation (diff)
downloadlinux-48059784ebac75a98e024c29ab301e05a8b8012f.tar.xz
linux-48059784ebac75a98e024c29ab301e05a8b8012f.zip
media: media/tuners: 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: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions