* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,10 +12,11 @@
|
|||||||
\brief Interface for userspace calls.
|
\brief Interface for userspace calls.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <ddm_userland_interface.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <AutoDeleter.h>
|
#include <AutoDeleter.h>
|
||||||
#include <ddm_userland_interface.h>
|
|
||||||
#include <fs/KPath.h>
|
#include <fs/KPath.h>
|
||||||
#include <KDiskDevice.h>
|
#include <KDiskDevice.h>
|
||||||
#include <KDiskDeviceManager.h>
|
#include <KDiskDeviceManager.h>
|
||||||
@@ -1306,7 +1307,6 @@ _user_create_child_partition(partition_id partitionID, int32* _changeCounter,
|
|||||||
off_t offset, off_t size, const char* _type, const char* _name,
|
off_t offset, off_t size, const char* _type, const char* _name,
|
||||||
const char* _parameters, size_t parametersSize, partition_id* childID,
|
const char* _parameters, size_t parametersSize, partition_id* childID,
|
||||||
int32* childChangeCounter)
|
int32* childChangeCounter)
|
||||||
|
|
||||||
{
|
{
|
||||||
// copy parameters in
|
// copy parameters in
|
||||||
UserStringParameter<false> type;
|
UserStringParameter<false> type;
|
||||||
@@ -1437,12 +1437,7 @@ _user_delete_child_partition(partition_id partitionID, int32* _changeCounter,
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
// return change counter
|
// return change counter
|
||||||
if ((error = copy_to_user_value(_changeCounter, partition->ChangeCounter()))
|
return copy_to_user_value(_changeCounter, partition->ChangeCounter());
|
||||||
!= B_OK) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
return B_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user