Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use name of variable instead of that of data str...
details: https://anonhg.NetBSD.org/src/rev/b5f86d52c5b6
branches: trunk
changeset: 967729:b5f86d52c5b6
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Fri Dec 20 01:12:51 2019 +0000
description:
Use name of variable instead of that of data structure
diffstat:
sys/dev/pci/if_ixl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 57902434e11e -r b5f86d52c5b6 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c Thu Dec 19 19:19:28 2019 +0000
+++ b/sys/dev/pci/if_ixl.c Fri Dec 20 01:12:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ixl.c,v 1.4 2019/12/11 10:03:08 yamaguchi Exp $ */
+/* $NetBSD: if_ixl.c,v 1.5 2019/12/20 01:12:51 yamaguchi Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -813,7 +813,7 @@
uint32_t retval;
uint64_t val;
- if (sizeof(bus_addr_t) > 4) {
+ if (sizeof(IXL_DMA_DVA(ixm)) > 4) {
val = (intptr_t)IXL_DMA_DVA(ixm);
retval = (uint32_t)(val >> 32);
} else {
@@ -835,7 +835,7 @@
{
uint64_t val;
- if (sizeof(bus_addr_t) > 4) {
+ if (sizeof(addr) > 4) {
val = (intptr_t)addr;
iaq->iaq_param[2] = htole32(val >> 32);
} else {
Home |
Main Index |
Thread Index |
Old Index