mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
AK: Remove debug spam in SharedBuffer::create_from_shbuf_id()
This commit is contained in:
parent
554b58d85f
commit
2c4a168404
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue