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:
parent
94b89e4bcc
commit
4701667eb2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user