Module Name: src
Committed By: christos
Date: Thu Aug 21 12:25:01 UTC 2014
Modified Files:
src/sys/dev/ic: mfi.c
Log Message:
revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/ic/mfi.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/ic/mfi.c
diff -u src/sys/dev/ic/mfi.c:1.53 src/sys/dev/ic/mfi.c:1.54
--- src/sys/dev/ic/mfi.c:1.53 Fri Jul 25 04:10:37 2014
+++ src/sys/dev/ic/mfi.c Thu Aug 21 08:25:01 2014
@@ -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 @@ mfi_init_ccb(struct mfi_softc *sc)
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++) {