diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-04-26 23:06:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-26 23:26:58 +0200 |
commit | afeee35cbf5466d4df15f5481c23315c41a677b3 (patch) | |
tree | 2527975a87a4743d68a684c6aff6508ecd9bcc85 /Kernel/Syscalls/mmap.cpp | |
parent | 4a40caa020731443b191922ba8ba3e7ecb3ac142 (diff) | |
download | serenity-afeee35cbf5466d4df15f5481c23315c41a677b3.zip |
Kernel: Avoid calling characters() where not necessary
Diffstat (limited to 'Kernel/Syscalls/mmap.cpp')
-rw-r--r-- | Kernel/Syscalls/mmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 2ceae850ad..07d2b66247 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -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); |