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

Commit 77a7f183 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Tomi Valkeinen
Browse files

fbdev: geocode: remove unneeded NULL check



the check for info is not required as we are checking it immediately
after gx1fb_init_fbinfo() and returnig -ENOMEM if it is NULL.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent a8fc91af
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -374,10 +374,8 @@ static int gx1fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
		release_mem_region(gx1_gx_base() + 0x8300, 0x100);
	}

	if (info) {
	fb_dealloc_cmap(&info->cmap);
	framebuffer_release(info);
	}

	return ret;
}