Skip to content

Commit 1c6f598

Browse files
authored
Update part_driver_mbr.c code fix
1 parent 4931726 commit 1c6f598

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

iop/fs/bdm/src/part_driver_mbr.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int part_connect_mbr(struct block_device *bd)
9797
{
9898
// No more free partition slots.
9999
printf("Can't mount partition, no more free partition slots!\n");
100-
continue;
100+
return -1;
101101
}
102102

103103
// Create the pseudo block device for the partition.
@@ -110,8 +110,6 @@ int part_connect_mbr(struct block_device *bd)
110110
g_part_bd[partIndex].sectorOffset = bd->sectorOffset;
111111
g_part_bd[partIndex].sectorCount = bd->sectorCount;
112112
bdm_connect_bd(&g_part_bd[partIndex]);
113-
//TODO, mountCount should only increase on success of bdm_connect_bd
114-
mountCount++;
115113

116114
FreeSysMemory(pMbrBlock);
117115
return 0;

0 commit comments

Comments
 (0)