Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev efi(4): Parenthesize EFIERR argument out of paranoia.
details: https://anonhg.NetBSD.org/src/rev/d3ac578abd82
branches: trunk
changeset: 375941:d3ac578abd82
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon May 22 16:27:39 2023 +0000
description:
efi(4): Parenthesize EFIERR argument out of paranoia.
PR kern/57076
XXX pullup-10
diffstat:
sys/dev/efi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 334851cbcdba -r d3ac578abd82 sys/dev/efi.c
--- a/sys/dev/efi.c Mon May 22 15:12:54 2023 +0000
+++ b/sys/dev/efi.c Mon May 22 16:27:39 2023 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index