Module Name:    src
Committed By:   riastradh
Date:           Mon May 22 16:27:39 UTC 2023

Modified Files:
        src/sys/dev: efi.c

Log Message:
efi(4): Parenthesize EFIERR argument out of paranoia.

PR kern/57076

XXX pullup-10


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/efi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/efi.c
diff -u src/sys/dev/efi.c:1.4 src/sys/dev/efi.c:1.5
--- src/sys/dev/efi.c:1.4	Sat Sep 24 11:06:03 2022
+++ src/sys/dev/efi.c	Mon May 22 16:27:39 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: efi.c,v 1.4 2022/09/24 11:06:03 riastradh Exp $ */
+/* $NetBSD: efi.c,v 1.5 2023/05/22 16:27:39 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2021 Jared McNeill <jmcne...@invisible.ca>
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.4 2022/09/24 11:06:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.5 2023/05/22 16:27:39 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -43,9 +43,9 @@ __KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.4 
 #include <dev/efivar.h>
 
 #ifdef _LP64
-#define	EFIERR(x)		(0x8000000000000000 | x)
+#define	EFIERR(x)		(0x8000000000000000 | (x))
 #else
-#define	EFIERR(x)		(0x80000000 | x)
+#define	EFIERR(x)		(0x80000000 | (x))
 #endif
 
 #define	EFI_SUCCESS		0

Reply via email to