diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 20:05:08 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 23:00:46 +0000 | 
| commit | 1383ff9c51dd58ed84021fafb14f7c2e27b7666b (patch) | |
| tree | 9106a01ad9c2b051bdbf1c104b93c739dd2eaecb /lib/workqueue.c | |
| parent | 831600c3d073dff1c6c0a4de84ef476f97b0332d (diff) | |
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/workqueue.c')
| -rw-r--r-- | lib/workqueue.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index fa69ec600e..066d81f350 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) {  | 
