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: viktor <tomjhin1@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user