ref: b44440bd165bdaa8c5764eead3fc54cadab7334f
parent: 7c33bdd2d31ade66cbf0ad4531fdbeda1d6cbba5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 16 12:25:33 EDT 2019
devsd: fix sddelpart() AGAIN the previous "fix" missed to advance pp so after we hit a invalid partition all following partitions would be ignored.
--- a/sys/src/9/port/devsd.c
+++ b/sys/src/9/port/devsd.c
@@ -154,9 +154,7 @@
*/
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++;
}