summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-09-03 10:00:20 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-09-03 10:00:20 +0000
commit957fb450140b7501ccaee092cff191fdeb77f965 (patch)
tree7c2f2196a52afdd294c696b8b1eb101d6ad4a5d8 /sys/arch
parent0decce8037e9a3d75e52bfdae7f36e900dff84b4 (diff)
remove duplicate test introduced in rev 1.3
Diffstat (limited to 'sys/arch')
-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,