hsi: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 11:09:28 +0000 (16:39 +0530)
committerSebastian Reichel <sre@kernel.org>
Sun, 29 May 2016 18:38:02 +0000 (20:38 +0200)
commitb32bd7e7d5c1c04bb351420c09217f38dad8b8f1
tree1b3d68ffa8d660d97ed89bf19e3c4b0c50541829
parentf6004b7bc651c11591d544ce3fd60d7bf7d71ccd
hsi: use kmemdup

Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/hsi.c
This page took 0.025143 seconds and 5 git commands to generate.