summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 21:05:08 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:46 +0100
commit1383ff9c51dd58ed84021fafb14f7c2e27b7666b (patch)
tree9106a01ad9c2b051bdbf1c104b93c739dd2eaecb /lib
parent*: compare pointer types to NULL, not 0 (diff)
downloadfrr-1383ff9c51dd58ed84021fafb14f7c2e27b7666b.tar.xz
frr-1383ff9c51dd58ed84021fafb14f7c2e27b7666b.zip
lib: STAILQ_FOREACH_SAFE never gives a null elem
So don't check it Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index fa69ec600..066d81f35 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -274,7 +274,7 @@ int work_queue_run(struct thread *thread)
wq->cycles.granularity = WORK_QUEUE_MIN_GRANULARITY;
STAILQ_FOREACH_SAFE (item, &wq->items, wq, titem) {
- assert(item && item->data);
+ assert(item->data);
/* dont run items which are past their allowed retries */
if (item->ran > wq->spec.max_retries) {