From ad687ec4152fbe970070f3874fe6abb322e718ee Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Fri, 14 Apr 2006 16:38:43 +0000 Subject: Remove duplicate code, okay ray@ --- sbin/disklabel/editor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 56505f28298..cb7e5f643cb 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.101 2005/12/05 21:30:40 miod Exp $ */ +/* $OpenBSD: editor.c,v 1.102 2006/04/14 16:38:42 pedro Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.101 2005/12/05 21:30:40 miod Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.102 2006/04/14 16:38:42 pedro Exp $"; #endif /* not lint */ #include @@ -496,8 +496,6 @@ editor_add(struct disklabel *lp, char **mp, u_int32_t *freep, char *p) /* Set defaults */ pp = &lp->d_partitions[partno]; - if (partno >= lp->d_npartitions) - lp->d_npartitions = partno + 1; memset(pp, 0, sizeof(*pp)); pp->p_size = *freep; pp->p_offset = next_offset(lp, &pp->p_size); -- cgit v1.2.3