From: jsg Date: Wed, 6 Sep 2023 03:17:32 +0000 (+0000) Subject: remove unused variable X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=69050b3c167ca63be802a583fe2f917d74cfed4e;p=openbsd remove unused variable --- diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index a1d1a2f6801..78857fc6840 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.415 2023/07/05 07:28:10 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.416 2023/09/06 03:17:32 jsg Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -1799,8 +1799,6 @@ micmp(const void *a1, const void *a2) void zero_partitions(struct disklabel *lp) { - int i; - memset(lp->d_partitions, 0, sizeof(lp->d_partitions)); DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));