1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Avoid calling characters() where not necessary

This commit is contained in:
Gunnar Beutner 2021-04-26 23:06:58 +02:00 committed by Andreas Kling
parent 4a40caa020
commit afeee35cbf
2 changed files with 3 additions and 3 deletions

View file

@ -249,7 +249,7 @@ KResultOr<FlatPtr> Process::sys$mmap(Userspace<const Syscall::SC_mmap_params*> u
if (auto* event_buffer = current_perf_events_buffer()) {
[[maybe_unused]] auto res = event_buffer->append(PERF_EVENT_MMAP, region->vaddr().get(),
region->size(), name.is_null() ? region->name().characters() : name.characters());
region->size(), name.is_null() ? region->name() : name);
}
region->set_mmap(true);