summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/mmap.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-04-26 23:06:58 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-26 23:26:58 +0200
commitafeee35cbf5466d4df15f5481c23315c41a677b3 (patch)
tree2527975a87a4743d68a684c6aff6508ecd9bcc85 /Kernel/Syscalls/mmap.cpp
parent4a40caa020731443b191922ba8ba3e7ecb3ac142 (diff)
downloadserenity-afeee35cbf5466d4df15f5481c23315c41a677b3.zip
Kernel: Avoid calling characters() where not necessary
Diffstat (limited to 'Kernel/Syscalls/mmap.cpp')
-rw-r--r--Kernel/Syscalls/mmap.cpp2
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);