summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 1 insertions, 3 deletions
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);