staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 18 Feb 2016 14:41:36 +0000 (20:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:02:06 +0000 (15:02 -0800)
commit8661fca6f679996133765fa905e9a480b8c96a74
treed25c90d3caca08a637537f119be500756ceaaeb7
parent11b49d9bb63fab2f92223419a2492661e317e2ef
staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc

Devm_ functions allocate memory that is released when a driver detaches.
Replace kzalloc with devm_kzalloc and remove corresponding
kfrees from probe and remove functions of a platform
device.

Also, an unnecessary label has been removed.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-dim2/dim2_hdm.c
This page took 0.025195 seconds and 5 git commands to generate.