Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c80a39d6 authored by Emil Goode's avatar Emil Goode Committed by Tomi Valkeinen
Browse files

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: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 6a902305
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}