aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-01-22 21:24:08 -0800
committerBrian Behlendorf <[email protected]>2021-01-26 16:12:10 -0800
commit2cdd75bed7aaa4737a901bd30d8daad479977756 (patch)
tree02cfcfa4980f414e244513ac1bb387e991182b14 /module/os
parent6fc1ce07239f17a1262e87a334325d60da34d7a1 (diff)
cppcheck: remove redundant ASSERTs
The ASSERT that the passed pointer isn't NULL appears after the pointer has already been dereferenced. Remove the redundant check. Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #11508
Diffstat (limited to 'module/os')
-rw-r--r--module/os/linux/spl/spl-taskq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/module/os/linux/spl/spl-taskq.c b/module/os/linux/spl/spl-taskq.c
index a63c34748..61631256c 100644
--- a/module/os/linux/spl/spl-taskq.c
+++ b/module/os/linux/spl/spl-taskq.c
@@ -274,8 +274,6 @@ taskq_lowest_id(taskq_t *tq)
taskq_ent_t *t;
taskq_thread_t *tqt;
- ASSERT(tq);
-
if (!list_empty(&tq->tq_pend_list)) {
t = list_entry(tq->tq_pend_list.next, taskq_ent_t, tqent_list);
lowest_id = MIN(lowest_id, t->tqent_id);