Get{Writable,Zero}(): Fixed return values. The type is bool not status_t.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37654 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-07-21 15:23:29 +00:00
parent 94b89e4bcc
commit 4701667eb2

View File

@ -44,7 +44,7 @@ Block::GetWritable(Volume* volume, uint64 blockIndex, Transaction& transaction)
status_t error = transaction.RegisterBlock(blockIndex);
if (error != B_OK)
return error;
return false;
return _Init(volume, blockIndex,
block_cache_get_writable(volume->BlockCache(), blockIndex,
@ -60,7 +60,7 @@ Block::GetZero(Volume* volume, uint64 blockIndex, Transaction& transaction)
status_t error = transaction.RegisterBlock(blockIndex);
if (error != B_OK)
return error;
return false;
return _Init(volume, blockIndex,
block_cache_get_empty(volume->BlockCache(), blockIndex,