diff options
author | mav <mav@FreeBSD.org> | 2012-06-05 10:23:41 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-06-05 10:23:41 +0000 |
commit | 4544de7ee7b66f1362b5f31a4ecc9f289c733f92 (patch) | |
tree | 5c9fae87bb90bade286ab19d4d3ac89908fa9ac2 /sys/cam | |
parent | c0ce8800a099d80e7f541e163b457a740ea8da87 (diff) | |
download | FreeBSD-src-4544de7ee7b66f1362b5f31a4ecc9f289c733f92.zip FreeBSD-src-4544de7ee7b66f1362b5f31a4ecc9f289c733f92.tar.gz |
Replace #ifdef CAMDEBUG + if + panic() with single KASSERT().
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 620e39a..b5bfcce 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -3226,13 +3226,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++; |