Skip to content

Commit

Permalink
video: vt8500lcdfb: Remove kfree call since devm_kzalloc() is used
Browse files Browse the repository at this point in the history
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 <emilgoode@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Emil Goode authored and Tomi Valkeinen committed Jun 26, 2014
1 parent 4bc8cad commit 74c0554
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/video/fbdev/vt8500lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 74c0554

Please sign in to comment.