summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-03 13:28:37 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-14 05:03:30 -0300
commitf6af820ef1be58c2e4b81aa479b9f109eb6344ce (patch)
tree6ac93f72465ce7b8eb28a84e1e7436f26d5f5f26 /block
parent48059784ebac75a98e024c29ab301e05a8b8012f (diff)
downloadlinux-0-day-f6af820ef1be58c2e4b81aa479b9f109eb6344ce.tar.gz
linux-0-day-f6af820ef1be58c2e4b81aa479b9f109eb6344ce.tar.xz
media: media/dvb: 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 'block')
0 files changed, 0 insertions, 0 deletions