Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pmax/ibus Fix DEBUG build
details: https://anonhg.NetBSD.org/src/rev/1001bc73c491
branches: trunk
changeset: 346050:1001bc73c491
user: maya <maya%NetBSD.org@localhost>
date: Mon Jun 20 20:19:43 2016 +0000
description:
Fix DEBUG build
While here, if DIAGNOSTIC panic to KASSERTMSG.
ok mlelstv@
diffstat:
sys/arch/pmax/ibus/sii.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (32 lines):
diff -r fcb56080111f -r 1001bc73c491 sys/arch/pmax/ibus/sii.c
--- a/sys/arch/pmax/ibus/sii.c Mon Jun 20 19:14:35 2016 +0000
+++ b/sys/arch/pmax/ibus/sii.c Mon Jun 20 20:19:43 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sii.c,v 1.11 2013/11/10 20:09:52 christos Exp $ */
+/* $NetBSD: sii.c,v 1.12 2016/06/20 20:19:43 maya Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sii.c,v 1.11 2013/11/10 20:09:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sii.c,v 1.12 2016/06/20 20:19:43 maya Exp $");
#include "sii.h"
/*
@@ -1759,11 +1759,8 @@
{
int i;
-#ifdef DIAGNOSTIC
- ScsiCmd *scsicmd = sc->sc_cmd[target];
- if (target < 0 || !scsicmd)
- panic("sii_CmdDone");
-#endif
+ ScsiCmd *scsicmd __unused = sc->sc_cmd[target];
+ KASSERTMSG(target >= 0 && scsicmd, "sii_CmdDone");
sc->sc_cmd[target] = (ScsiCmd *)0;
#ifdef DEBUG
if (sii_debug > 1) {
Home |
Main Index |
Thread Index |
Old Index