mirror of https://gitee.com/openkylin/linux.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 <tt.rantala@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
602286469c
commit
b0e77f45a6
|
@ -142,7 +142,6 @@ static int mga_vram_init(struct mga_device *mdev)
|
||||||
|
|
||||||
aper->ranges[0].base = mdev->mc.vram_base;
|
aper->ranges[0].base = mdev->mc.vram_base;
|
||||||
aper->ranges[0].size = mdev->mc.vram_window;
|
aper->ranges[0].size = mdev->mc.vram_window;
|
||||||
aper->count = 1;
|
|
||||||
|
|
||||||
remove_conflicting_framebuffers(aper, "mgafb", true);
|
remove_conflicting_framebuffers(aper, "mgafb", true);
|
||||||
kfree(aper);
|
kfree(aper);
|
||||||
|
|
Loading…
Reference in New Issue