From deb1f1c331ae92b9534e51dede7b4c73eaae3e20 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Thu, 9 Feb 2017 12:38:51 +0100 Subject: [PATCH] CFbAccelCSHD1::~CFbAccelCSHD1: Remove unnecessary entries... ...that are processed in the CFrameBuffer destructor Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/0b7bb32813531d313e1fd54ae333f200ef6ea815 Author: Michael Liebmann Date: 2017-02-09 (Thu, 09 Feb 2017) ------------------ This commit was generated by Migit --- src/driver/fb_accel_cs_hd1.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/driver/fb_accel_cs_hd1.cpp b/src/driver/fb_accel_cs_hd1.cpp index 0fc772ab9..4b3df3d20 100644 --- a/src/driver/fb_accel_cs_hd1.cpp +++ b/src/driver/fb_accel_cs_hd1.cpp @@ -150,10 +150,6 @@ CFbAccelCSHD1::~CFbAccelCSHD1() munmap((void *)gxa_base, 0x40000); if (devmem_fd != -1) close(devmem_fd); - if (lfb) - munmap(lfb, available); - if (fd > -1) - close(fd); } void CFbAccelCSHD1::setColor(fb_pixel_t col) @@ -344,7 +340,7 @@ int CFbAccelCSHD1::setMode(unsigned int, unsigned int, unsigned int) xRes = screeninfo.xres; yRes = screeninfo.yres; bpp = screeninfo.bits_per_pixel; - printf(LOGTAG "%dx%dx%d line length %d. using hd1 graphics accelerator.\n", xRes, yRes, bpp, stride); + printf(LOGTAG "%dx%dx%d line length %d. using %s graphics accelerator.\n", xRes, yRes, bpp, stride, _fix.id); int needmem = stride * yRes * 2; if (available >= needmem) {