summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-07-25 14:28:50 +0000
committeremaste <emaste@FreeBSD.org>2016-07-25 14:28:50 +0000
commitc41d5d1a73024e066e5b8cfa204ad0ca54ad79d7 (patch)
treef7eb02ebeafcb277f1ea36ac147fd2b16cb4f7bd /sys/boot/efi
parent502f84aa8ec1419d4f52111bdbcd33870a8f4149 (diff)
downloadFreeBSD-src-c41d5d1a73024e066e5b8cfa204ad0ca54ad79d7.zip
FreeBSD-src-c41d5d1a73024e066e5b8cfa204ad0ca54ad79d7.tar.gz
MFC r302335: boot1.efi: fix assignment / comparison expression
PR: 210706 Submitted by: David Binderman <dcb314@hotmail.com>
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/boot1/boot1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/boot1/boot1.c b/sys/boot/efi/boot1/boot1.c
index 1161b0a..90491fe 100644
--- a/sys/boot/efi/boot1/boot1.c
+++ b/sys/boot/efi/boot1/boot1.c
@@ -629,7 +629,7 @@ efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABLE *Xsystab)
case EFI_BUFFER_TOO_SMALL:
(void)bs->FreePool(handles);
if ((status = bs->AllocatePool(EfiLoaderData, hsize,
- (void **)&handles) != EFI_SUCCESS)) {
+ (void **)&handles)) != EFI_SUCCESS) {
panic("Failed to allocate %zu handles (%lu)", hsize /
sizeof(*handles), EFI_ERROR_CODE(status));
}
OpenPOWER on IntegriCloud