mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <ryan@ixsystems.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11508
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user