diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-05 16:36:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-05 16:36:28 +0200 |
commit | 2c4a16840483b87b73788a1de0ff826aa759d64e (patch) | |
tree | f77c9c7ab6eb18b31ee4514c943d21c12bfdfb17 /AK/SharedBuffer.cpp | |
parent | 554b58d85fb4d1442e95ada5bea524956d28c8dd (diff) | |
download | serenity-2c4a16840483b87b73788a1de0ff826aa759d64e.zip |
AK: Remove debug spam in SharedBuffer::create_from_shbuf_id()
Diffstat (limited to 'AK/SharedBuffer.cpp')
-rw-r--r-- | AK/SharedBuffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/AK/SharedBuffer.cpp b/AK/SharedBuffer.cpp index 3c46169db1..c0ce19db74 100644 --- a/AK/SharedBuffer.cpp +++ b/AK/SharedBuffer.cpp @@ -69,10 +69,8 @@ RefPtr<SharedBuffer> SharedBuffer::create_from_shbuf_id(int shbuf_id) { size_t size = 0; void* data = shbuf_get(shbuf_id, &size); - if (data == (void*)-1) { - perror("shbuf_get"); + if (data == (void*)-1) return nullptr; - } return adopt(*new SharedBuffer(shbuf_id, size, data)); } |