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

Commit 646dc1fe authored by viktor's avatar viktor Committed by Jhin Tom
Browse files

Remove useless variable "mapbase" from screencap



The variable "mapbase" is not really used and we should remove it from screencap

Test: make screencap

Change-Id: Id17b6f440d3ab42f1c54fe90065eac50e0190f01
Signed-off-by: default avatarviktor <tomjhin1@gmail.com>
parent 2c86cec3
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -173,9 +173,6 @@ int main(int argc, char** argv)
        return 1;
    }

    void const* mapbase = MAP_FAILED;
    ssize_t mapsize = -1;

    void* base = NULL;

    // setThreadPoolMaxThreadCount(0) actually tells the kernel it's
@@ -255,9 +252,6 @@ int main(int argc, char** argv)
        }
    }
    close(fd);
    if (mapbase != MAP_FAILED) {
        munmap((void *)mapbase, mapsize);
    }

    return 0;
}