media: staging: atomisp: use kstrdup to replace kmalloc and memcpy
authorHari Prasath <gehariprasath@gmail.com>
Mon, 10 Jul 2017 06:17:00 +0000 (02:17 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 20:25:28 +0000 (16:25 -0400)
commite19902225473529c8b84579930fe66156cd1f258
tree3387a359a735f962fe7544a7e11194daeae48911
parente9e8c1cd18dcc047ad9b9d640fa5b198a096df90
media: staging: atomisp: use kstrdup to replace kmalloc and memcpy

kstrdup kernel primitive can be used to replace kmalloc followed by
string copy. This was reported by coccinelle tool.

Signed-off-by: Hari Prasath <gehariprasath@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_firmware.c