From: Tommi Rantala Date: Fri, 9 Nov 2012 09:19:38 +0000 (+0000) Subject: drm/mgag200: remove unneeded aper->count assignment after alloc_apertures() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0e77f45a6da3f361d69680baeb0e133d0bc46c0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/mgag200: remove unneeded aper->count assignment after alloc_apertures() alloc_apertures() already does the assignment for us, so assigning the count member after the alloc_apertures() call is not needed. Signed-off-by: Tommi Rantala Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 857d71be9f0c..70dd3c5529d4 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c @@ -142,7 +142,6 @@ static int mga_vram_init(struct mga_device *mdev) aper->ranges[0].base = mdev->mc.vram_base; aper->ranges[0].size = mdev->mc.vram_window; - aper->count = 1; remove_conflicting_framebuffers(aper, "mgafb", true); kfree(aper);