devsd: fix sddelpart() AGAIN
the previous "fix" missed to advance pp so after we hit a invalid partition all following partitions would be ignored.front
parent
7c33bdd2d3
commit
b44440bd16
|
@ -154,9 +154,7 @@ sddelpart(SDunit* unit, char* name)
|
|||
*/
|
||||
pp = unit->part;
|
||||
for(i = 0; i < unit->npart; i++){
|
||||
if(!pp->valid)
|
||||
continue;
|
||||
if(strcmp(name, pp->name) == 0)
|
||||
if(pp->valid && strcmp(name, pp->name) == 0)
|
||||
break;
|
||||
pp++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue