From f17127a2ce16262ca0bdbb5b8d7fb80e41889c97 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 12 Dec 2021 22:54:35 +0000 Subject: [PATCH] remove unused variable to fix build with llvm 13 ok jca@ naddy@ --- sys/arch/armv7/stand/efiboot/efiboot.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c index 70e6bbbc13d..5d7b12124e9 100644 --- a/sys/arch/armv7/stand/efiboot/efiboot.c +++ b/sys/arch/armv7/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.37 2021/10/26 14:10:02 patrick Exp $ */ +/* $OpenBSD: efiboot.c,v 1.38 2021/12/12 22:54:35 jsg Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -697,7 +697,6 @@ devboot(dev_t dev, char *p) { struct diskinfo *dip; int sd_boot_vol = 0; - int part_type = FS_UNUSED; if (bootdev_dip == NULL) { strlcpy(p, "tftp0a", 7); @@ -710,13 +709,6 @@ devboot(dev_t dev, char *p) sd_boot_vol++; } - /* - * Determine the partition type for the 'a' partition of the - * boot device. - */ - if ((bootdev_dip->flags & DISKINFO_FLAG_GOODLABEL) != 0) - part_type = bootdev_dip->disklabel.d_partitions[0].p_fstype; - strlcpy(p, "sd0a", 5); p[2] = '0' + sd_boot_vol; } -- 2.20.1