Skip to content

Commit

Permalink
drm/mgag200: remove unneeded aper->count assignment after alloc_apert…
Browse files Browse the repository at this point in the history
…ures()

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 <tt.rantala@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Tommi Rantala authored and Dave Airlie committed Nov 20, 2012
1 parent 6022864 commit b0e77f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpu/drm/mgag200/mgag200_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0e77f4

Please sign in to comment.