Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add parenthesis for the addr argument of ISMT_DE...
details: https://anonhg.NetBSD.org/src/rev/465922e55f8d
branches: trunk
changeset: 343379:465922e55f8d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Feb 01 08:53:36 2016 +0000
description:
Add parenthesis for the addr argument of ISMT_DESC_ADDR_RW(addr, is_read).
It was no real bug.
diffstat:
sys/dev/pci/ismt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r c2b40fa654a9 -r 465922e55f8d sys/dev/pci/ismt.c
--- a/sys/dev/pci/ismt.c Mon Feb 01 08:28:48 2016 +0000
+++ b/sys/dev/pci/ismt.c Mon Feb 01 08:53:36 2016 +0000
@@ -60,7 +60,7 @@
#if 0
__FBSDID("$FreeBSD: head/sys/dev/ismt/ismt.c 266474 2014-05-20 19:55:06Z jimharris $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.2 2016/01/06 03:53:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.3 2016/02/01 08:53:36 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -100,7 +100,7 @@
#define ISMT_DESC_LPR 0x80 /* Large Packet Received */
/* Macros */
-#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr << 1) | (is_read))
+#define ISMT_DESC_ADDR_RW(addr, is_read) (((addr) << 1) | (is_read))
/* iSMT General Register address offsets (SMBBAR + <addr>) */
#define ISMT_GR_GCTRL 0x000 /* General Control */
Home |
Main Index |
Thread Index |
Old Index