Merge tag 'nfsd-4.17' of git://linux-nfs.org/~bfields/linux
[linux-2.6-microblaze.git] / kernel / locking / rtmutex.c
index 940633c..4f014be 100644 (file)
@@ -1268,8 +1268,7 @@ rt_mutex_slowlock(struct rt_mutex *lock, int state,
 
        if (unlikely(ret)) {
                __set_current_state(TASK_RUNNING);
-               if (rt_mutex_has_waiters(lock))
-                       remove_waiter(lock, &waiter);
+               remove_waiter(lock, &waiter);
                rt_mutex_handle_deadlock(ret, chwalk, &waiter);
        }