Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic revert previous; code checking tool is incorrect....
details: https://anonhg.NetBSD.org/src/rev/435ee9ecefce
branches: trunk
changeset: 331715:435ee9ecefce
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 21 12:25:01 2014 +0000
description:
revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.
diffstat:
sys/dev/ic/mfi.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 6e339f2ded58 -r 435ee9ecefce sys/dev/ic/mfi.c
--- a/sys/dev/ic/mfi.c Thu Aug 21 08:52:23 2014 +0000
+++ b/sys/dev/ic/mfi.c Thu Aug 21 12:25:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfi.c,v 1.53 2014/07/25 08:10:37 dholland Exp $ */
+/* $NetBSD: mfi.c,v 1.54 2014/08/21 12:25:01 christos Exp $ */
/* $OpenBSD: mfi.c,v 1.66 2006/11/28 23:59:45 dlg Exp $ */
/*
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.53 2014/07/25 08:10:37 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.54 2014/08/21 12:25:01 christos Exp $");
#include "bio.h"
@@ -380,15 +380,15 @@
sc->sc_ccb = malloc(sizeof(struct mfi_ccb) * sc->sc_max_cmds,
M_DEVBUF, M_WAITOK|M_ZERO);
- io_req_base = (uint8_t *)MFIMEM_KVA(sc->sc_tbolt_reqmsgpool);
- io_req_base_phys = MFIMEM_DVA(sc->sc_tbolt_reqmsgpool);
if (sc->sc_ioptype == MFI_IOP_TBOLT) {
/*
* The first 256 bytes (SMID 0) is not used.
* Don't add to the cmd list.
*/
- io_req_base += MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
- io_req_base_phys += MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
+ io_req_base = (uint8_t *)MFIMEM_KVA(sc->sc_tbolt_reqmsgpool) +
+ MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
+ io_req_base_phys = MFIMEM_DVA(sc->sc_tbolt_reqmsgpool) +
+ MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
}
for (i = 0; i < sc->sc_max_cmds; i++) {
Home |
Main Index |
Thread Index |
Old Index