fix typos using codespell utility
[dpdk.git] / examples / performance-thread / common / lthread_mutex.c
index 074d066..c06d3d5 100644 (file)
@@ -44,7 +44,6 @@
 #include <sys/time.h>
 #include <sys/mman.h>
 
-#include <rte_config.h>
 #include <rte_per_lcore.h>
 #include <rte_log.h>
 #include <rte_spinlock.h>
@@ -171,11 +170,10 @@ int lthread_mutex_lock(struct lthread_mutex *m)
                _suspend();
                /* resumed, must loop and compete for the lock again */
        }
-       LTHREAD_ASSERT(0);
        return 0;
 }
 
-/* try to lock a mutex but dont block */
+/* try to lock a mutex but don't block */
 int lthread_mutex_trylock(struct lthread_mutex *m)
 {
        struct lthread *lt = THIS_LTHREAD;
@@ -232,7 +230,7 @@ int lthread_mutex_unlock(struct lthread_mutex *m)
                if (unblocked != NULL) {
                        rte_atomic64_dec(&m->count);
                        DIAG_EVENT(m, LT_DIAG_MUTEX_UNLOCKED, m, unblocked);
-                       LTHREAD_ASSERT(unblocked->sched != NULL);
+                       RTE_ASSERT(unblocked->sched != NULL);
                        _ready_queue_insert((struct lthread_sched *)
                                            unblocked->sched, unblocked);
                        break;