From: Emil Goode Date: Fri, 20 Jun 2014 21:50:37 +0000 (+0200) Subject: video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74c0554ac79ef5aecfeb087bc08771363b221c99;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used We use devm_kzalloc() to allocate memory for the struct vt8500lcd_info pointer fbi, so there is no need to free it in vt8500lcd_remove(). Signed-off-by: Emil Goode Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index a8f2b280f796..a1134c3f6c11 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -474,8 +474,6 @@ static int vt8500lcd_remove(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(res->start, resource_size(res)); - kfree(fbi); - return 0; }