From: krw Date: Fri, 2 Sep 2022 12:28:12 +0000 (+0000) Subject: Nuke variable partlba that is set but not used. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b5cea687ab27e0bb209373d37eaf2fc2daccda1f;p=openbsd Nuke variable partlba that is set but not used. --- diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index cac0b450026..5f06c010aec 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.256 2022/09/02 12:24:26 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.257 2022/09/02 12:28:12 krw Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -460,7 +460,6 @@ gpt_get_hdr(struct buf *bp, void (*strat)(struct buf *), struct disklabel *lp, { struct gpt_header ngh; int error; - uint64_t partlba; uint64_t lbaend, lbastart; uint32_t csum; uint32_t size, partsize; @@ -474,7 +473,6 @@ gpt_get_hdr(struct buf *bp, void (*strat)(struct buf *), struct disklabel *lp, size = letoh32(ngh.gh_size); partsize = letoh32(ngh.gh_part_size); - partlba = letoh64(ngh.gh_part_lba); lbaend = letoh64(ngh.gh_lba_end); lbastart = letoh64(ngh.gh_lba_start);