summaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-mt6797-img.c
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-03 13:28:57 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-14 05:02:43 -0300
commit771560e5d341dc61f9e87bc715f3dbb4efe6ec62 (patch)
treefb069729ba7d19bb18365657e640d40d9cbb9a33 /drivers/clk/mediatek/clk-mt6797-img.c
parent0dc99e042a4cfbc1e27572d523d2a1dbaf402cbf (diff)
downloadblackbird-op-linux-771560e5d341dc61f9e87bc715f3dbb4efe6ec62.tar.gz
blackbird-op-linux-771560e5d341dc61f9e87bc715f3dbb4efe6ec62.zip
media: media/usb: 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/clk/mediatek/clk-mt6797-img.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud