Nuke variable partlba that is set but not used.
authorkrw <krw@openbsd.org>
Fri, 2 Sep 2022 12:28:12 +0000 (12:28 +0000)
committerkrw <krw@openbsd.org>
Fri, 2 Sep 2022 12:28:12 +0000 (12:28 +0000)
sys/kern/subr_disk.c

index cac0b45..5f06c01 100644 (file)
@@ -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);