]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/video/backlight/da9052_bl.c: drop devm_kfree of devm_kzalloc'd data
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 28 Sep 2012 00:20:19 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:50:43 +0000 (16:50 +1000)
commit99a5892de91969a8b6b73af9d7c240a14cce1d0f
treeb87cf0ce40a95939d1d1f478e47c9864f695f469
parent6b74ecf81d0a177e78f8fe96de679f775a7ed2cc
drivers/video/backlight/da9052_bl.c: drop devm_kfree of devm_kzalloc'd data

devm_kfree should not have to be explicitly used.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,d;
@@

x = devm_kzalloc(...)
...
?-devm_kfree(d,x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/da9052_bl.c