From 82f0e8a216e7a7333d863b70f06318dcfeeac746 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Tue, 14 Aug 2018 15:28:56 -0400 Subject: [PATCH] qlt: avoid set but not used errors Use VERIFY()s instead of just squelching the warning - if things failed it's better to panic rather than just plow ahead with assuming everything is ok. --- kernel/comstar/port/qlt/qlt_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/comstar/port/qlt/qlt_dma.c b/kernel/comstar/port/qlt/qlt_dma.c index eb35b73bd3..324e175461 100644 --- a/kernel/comstar/port/qlt/qlt_dma.c +++ b/kernel/comstar/port/qlt/qlt_dma.c @@ -562,7 +562,7 @@ qlt_dma_free_handles(qlt_state_t *qlt, qlt_dma_handle_t *first_handle) */ if (tmp_handle->num_cookies != 0) { rv = ddi_dma_unbind_handle(tmp_handle->dma_handle); - ASSERT(rv == DDI_SUCCESS); + VERIFY(rv == DDI_SUCCESS); tmp_handle->num_cookies = 0; tmp_handle->num_cookies_fetched = 0; } -- 2.11.4.GIT