n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".
-/* $OpenBSD: softraid.c,v 1.13 2015/10/01 20:28:12 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.14 2015/10/08 12:54:30 krw Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
dp = &mbr.dmbr_parts[i];
if (!dp->dp_size)
continue;
- if (dp->dp_typ == DOSPTYP_OPENBSD) {
- if (dp->dp_start > (dp->dp_start + DOSBBSECTOR))
- continue;
- start = dp->dp_start + DOSBBSECTOR;
- }
+ if (dp->dp_typ == DOSPTYP_OPENBSD)
+ start = dp->dp_start;
}
}
-/* $OpenBSD: softraid.c,v 1.13 2015/10/01 20:28:12 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.14 2015/10/08 12:54:30 krw Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
dp = &mbr.dmbr_parts[i];
if (!dp->dp_size)
continue;
- if (dp->dp_typ == DOSPTYP_OPENBSD) {
- if (dp->dp_start > (dp->dp_start + DOSBBSECTOR))
- continue;
- start = dp->dp_start + DOSBBSECTOR;
- }
+ if (dp->dp_typ == DOSPTYP_OPENBSD)
+ start = dp->dp_start;
}
}