summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/stand/efiboot/efidev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/armv7/stand/efiboot/efidev.c')
-rw-r--r--sys/arch/armv7/stand/efiboot/efidev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/armv7/stand/efiboot/efidev.c b/sys/arch/armv7/stand/efiboot/efidev.c
index 8591ac2602c..4cd77553a9e 100644
--- a/sys/arch/armv7/stand/efiboot/efidev.c
+++ b/sys/arch/armv7/stand/efiboot/efidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efidev.c,v 1.3 2019/07/29 22:33:26 yasuoka Exp $ */
+/* $OpenBSD: efidev.c,v 1.4 2019/09/03 10:00:19 jsg Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -82,8 +82,6 @@ efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf)
case F_WRITE:
if (ed->blkio->Media->ReadOnly)
goto on_eio;
- if (ed->blkio->Media->ReadOnly)
- goto on_eio;
memcpy(data, buf, nsect * DEV_BSIZE);
status = EFI_CALL(ed->blkio->WriteBlocks,
ed->blkio, ed->mediaid, off,