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

Commit b0e77f45 authored by Tommi Rantala's avatar Tommi Rantala Committed by Dave Airlie
Browse files

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: default avatarTommi Rantala <tt.rantala@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 60228646
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);