From 1d6526c6f4de3600111b9ba4b1194566a9d69b5d Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 21 Oct 2006 14:18:38 +0000 Subject: We have a pointer (pp), so use it in the DOSPTYP_UNUSED case rather than lp->d_partitions[8+n++]. All other cases already use the pointer. No functional change. --- sys/arch/landisk/landisk/disksubr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/landisk') diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c index be4bdb5df61..bb18872e393 100644 --- a/sys/arch/landisk/landisk/disksubr.c +++ b/sys/arch/landisk/landisk/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.7 2006/10/20 23:47:42 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.8 2006/10/21 14:18:37 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -184,8 +184,8 @@ donot: */ if (cp == (char *)(dp2 + 1)) continue; - lp->d_partitions[8 + n++].p_fstype = - FS_UNUSED; + pp->p_fstype = FS_UNUSED; + n++; break; case DOSPTYP_LINUX: -- cgit v1.2.3