rem: status_t error = partition ? B_OK : B_ENTRY_NOT_FOUND;
add: error = partition ? B_OK : B_ENTRY_NOT_FOUND;
context: _kern_initialize_partition(partition_id partitionID, int32 changeCounter,						   const char *_diskSystemName, const char *_name,						   const char *_parameters){	if (!_diskSystemName || !_name)		return B_BAD_VALUE;	char diskSystemName[B_OS_NAME_LENGTH];	char name[B_OS_NAME_LENGTH];	char *parameters = NULL;	if (user_strlcpy(diskSystemName, _diskSystemName, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH	    || 	user_strlcpy(name, _name, B_OS_NAME_LENGTH) >= B_OS_NAME_LENGTH)		return B_NAME_TOO_LONG;	if (_parameters) {		parameters = static_cast<char*>(malloc(strlen(_parameters)+1));		if (parameters)			user_strcpy(parameters, _parameters);		else			return B_NO_MEMORY;	}	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	// get the partition	KPartition *partition = manager->WriteLockPartition(partitionID);	status_t error = partition ? B_OK : B_ENTRY_NOT_FOUND;	if (!error) {		PartitionRegistrar registrar1(partition, true);		PartitionRegistrar registrar2(partition->Device(), true);		DeviceWriteLocker locker(partition->Device(), true);		// get the disk system		KDiskSystem *diskSystem = manager->LoadDiskSystem(diskSystemName);		error = diskSystem ? B_OK : B_ENTRY_NOT_FOUND;		if (!error) {			DiskSystemLoader loader(diskSystem, true);			// check parameters			char proposedName[B_OS_NAME_LENGTH];			strcpy(proposedName, name);			error = validate_initialize_partition(partition, changeCounter,				diskSystemName, proposedName, parameters);			if (!error) {				error = !strcmp(name, proposedName) ? B_OK : B_BAD_VALUE;			}			if (!error) {				// unitialize the partition's contents and set the new parameters				error = partition->UninitializeContents(true);			}			if (!error) {				partition->SetDiskSystem(diskSystem);				error = partition->SetContentName(name);			}			if (!error) {				partition->Changed(B_PARTITION_CHANGED_CONTENT_NAME);				error = partition->SetContentParameters(parameters);			}			if (!error) {				partition->Changed(B_PARTITION_CHANGED_CONTENT_PARAMETERS);				// implicit content disk system changes				error = partition->DiskSystem()->ShadowPartitionChanged(					partition, B_PARTITION_INITIALIZE);			}		}	}	free(parameters);	return error;}