diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2021-12-11 20:11:19 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2021-12-11 20:11:19 +0000 |
commit | 318c08d72be54c0d5496a131fbb9319e61d49f36 (patch) | |
tree | df1409a1142d3828c8cb67333c7a99a203aeb5eb /sys/arch | |
parent | 3ad3e9125ba635c210e43a98c91367fa88770095 (diff) |
remove unused variable to fix build with llvm 13; ok jca@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/stand/efiboot/efipxe.c | 5 | ||||
-rw-r--r-- | sys/arch/armv7/stand/efiboot/efipxe.c | 5 | ||||
-rw-r--r-- | sys/arch/riscv64/stand/efiboot/efipxe.c | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/sys/arch/arm64/stand/efiboot/efipxe.c b/sys/arch/arm64/stand/efiboot/efipxe.c index d34d5d95ec6..ec3a933c740 100644 --- a/sys/arch/arm64/stand/efiboot/efipxe.c +++ b/sys/arch/arm64/stand/efiboot/efipxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efipxe.c,v 1.11 2021/06/06 23:56:55 krw Exp $ */ +/* $OpenBSD: efipxe.c,v 1.12 2021/12/11 20:11:17 naddy Exp $ */ /* * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> * @@ -311,12 +311,11 @@ int tftpopen(struct open_file *f, ...) { EFI_STATUS status; - u_int unit, part; + u_int unit; va_list ap; va_start(ap, f); unit = va_arg(ap, u_int); - part = va_arg(ap, u_int); va_end(ap); /* No PXE set -> no PXE available */ diff --git a/sys/arch/armv7/stand/efiboot/efipxe.c b/sys/arch/armv7/stand/efiboot/efipxe.c index 537420c8a64..58a96440d61 100644 --- a/sys/arch/armv7/stand/efiboot/efipxe.c +++ b/sys/arch/armv7/stand/efiboot/efipxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efipxe.c,v 1.8 2021/06/07 21:18:31 krw Exp $ */ +/* $OpenBSD: efipxe.c,v 1.9 2021/12/11 20:11:17 naddy Exp $ */ /* * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> * @@ -311,12 +311,11 @@ int tftpopen(struct open_file *f, ...) { EFI_STATUS status; - u_int unit, part; + u_int unit; va_list ap; va_start(ap, f); unit = va_arg(ap, u_int); - part = va_arg(ap, u_int); va_end(ap); /* No PXE set -> no PXE available */ diff --git a/sys/arch/riscv64/stand/efiboot/efipxe.c b/sys/arch/riscv64/stand/efiboot/efipxe.c index 2ac2a2feb73..01764f6cbb0 100644 --- a/sys/arch/riscv64/stand/efiboot/efipxe.c +++ b/sys/arch/riscv64/stand/efiboot/efipxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efipxe.c,v 1.2 2021/06/25 17:49:49 krw Exp $ */ +/* $OpenBSD: efipxe.c,v 1.3 2021/12/11 20:11:18 naddy Exp $ */ /* * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> * @@ -311,12 +311,11 @@ int tftpopen(struct open_file *f, ...) { EFI_STATUS status; - u_int unit, part; + u_int unit; va_list ap; va_start(ap, f); unit = va_arg(ap, u_int); - part = va_arg(ap, u_int); va_end(ap); /* No PXE set -> no PXE available */ |