From 0e3838179358fc625aff952bf451326c6431dc55 Mon Sep 17 00:00:00 2001 From: mav Date: Wed, 20 Jun 2012 13:42:40 +0000 Subject: [PATCH] MFC r236605: Replace #ifdef CAMDEBUG + if + panic() with single KASSERT(). git-svn-id: svn://svn.freebsd.org/base/stable/8@237304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/cam/cam_xpt.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 388819e73..b95970b5a 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -3179,13 +3179,8 @@ xpt_run_dev_allocq(struct cam_eb *bus) ("running device %p\n", device)); drvq = &device->drvq; - -#ifdef CAMDEBUG - if (drvq->entries <= 0) { - panic("xpt_run_dev_allocq: " - "Device on queue without any work to do"); - } -#endif + KASSERT(drvq->entries > 0, ("xpt_run_dev_allocq: " + "Device on queue without any work to do")); if ((work_ccb = xpt_get_ccb(device)) != NULL) { devq->alloc_openings--; devq->alloc_active++; -- 2.45.0