From 957fb450140b7501ccaee092cff191fdeb77f965 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 3 Sep 2019 10:00:20 +0000 Subject: remove duplicate test introduced in rev 1.3 --- sys/arch/armv7/stand/efiboot/efidev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/arch') 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 @@ -80,8 +80,6 @@ efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf) memcpy(buf, data, nsect * DEV_BSIZE); break; 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); -- cgit v1.2.3